From 019eac191b2f0224cc70c524385e44077cb78a1c Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 29 Sep 2025 09:42:55 -0700 Subject: [PATCH] Fix a couple of typos --- lib/rack/test/cookie_jar.rb | 2 +- spec/rack/test/cookie_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rack/test/cookie_jar.rb b/lib/rack/test/cookie_jar.rb index d09a5bb..c0c6e9b 100644 --- a/lib/rack/test/cookie_jar.rb +++ b/lib/rack/test/cookie_jar.rb @@ -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 diff --git a/spec/rack/test/cookie_spec.rb b/spec/rack/test/cookie_spec.rb index 6b0036d..c86ab3c 100644 --- a/spec/rack/test/cookie_spec.rb +++ b/spec/rack/test/cookie_spec.rb @@ -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'