Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rack/test/cookie_jar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def initialize(raw, uri = nil, default_host = DEFAULT_HOST)
@options['path'] ||= uri.path.sub(/\/[^\/]*\Z/, '')
end

# Wether the given cookie can replace the current cookie in the cookie jar.
# Whether the given cookie can replace the current cookie in the cookie jar.
def replaces?(other)
[name.downcase, domain, path] == [other.name.downcase, other.domain, other.path]
end
Expand Down
2 changes: 1 addition & 1 deletion spec/rack/test/cookie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def cookie.expired?; true end
last_request.cookies.must_equal 'value' => '10', 'foo' => 'bar'
end

it 'skips emtpy string cookies' do
it 'skips empty string cookies' do
set_cookie "value=10\n\nfoo=bar"
get '/cookies/show'
last_request.cookies.must_equal 'value' => '10', 'foo' => 'bar'
Expand Down