Skip to content

Commit 80d53c5

Browse files
jdufresnejeremyevans
authored andcommitted
Fix a couple of typos
1 parent 2764cc2 commit 80d53c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rack/test/cookie_jar.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def initialize(raw, uri = nil, default_host = DEFAULT_HOST)
4545
@options['path'] ||= uri.path.sub(/\/[^\/]*\Z/, '')
4646
end
4747

48-
# Wether the given cookie can replace the current cookie in the cookie jar.
48+
# Whether the given cookie can replace the current cookie in the cookie jar.
4949
def replaces?(other)
5050
[name.downcase, domain, path] == [other.name.downcase, other.domain, other.path]
5151
end

spec/rack/test/cookie_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def cookie.expired?; true end
234234
last_request.cookies.must_equal 'value' => '10', 'foo' => 'bar'
235235
end
236236

237-
it 'skips emtpy string cookies' do
237+
it 'skips empty string cookies' do
238238
set_cookie "value=10\n\nfoo=bar"
239239
get '/cookies/show'
240240
last_request.cookies.must_equal 'value' => '10', 'foo' => 'bar'

0 commit comments

Comments
 (0)