summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJosh Soref <2119212+jsoref@users.noreply.github.com>2022-05-24 23:28:16 -0400
committerGitHub <noreply@github.com>2022-05-25 15:28:16 +1200
commitf587034d9d2c9a8964cf6a30b32ef264b3375c6b (patch)
treebb4cb3cf673dc838af7f8c1962441c7904d1d172 /test
parenta7747ec32e9971649257e838b0b49b9588945107 (diff)
downloadrack-f587034d9d2c9a8964cf6a30b32ef264b3375c6b.tar.gz
Fix various spelling issues. (#1897)
Diffstat (limited to 'test')
-rw-r--r--test/spec_deflater.rb2
-rw-r--r--test/spec_multipart.rb2
-rw-r--r--test/spec_show_exceptions.rb4
3 files changed, 4 insertions, 4 deletions
diff --git a/test/spec_deflater.rb b/test/spec_deflater.rb
index ed22c1fb..6cac22ac 100644
--- a/test/spec_deflater.rb
+++ b/test/spec_deflater.rb
@@ -31,7 +31,7 @@ describe Rack::Deflater do
#
# [expected_status] expected response status, e.g. 200, 304
# [expected_body] expected response body
- # [accept_encoing] what Accept-Encoding header to send and expect, e.g.
+ # [accept_encoding] what Accept-Encoding header to send and expect, e.g.
# 'deflate' - accepts and expects deflate encoding in response
# { 'gzip' => nil } - accepts gzip but expects no encoding in response
# [options] hash of request options, i.e.
diff --git a/test/spec_multipart.rb b/test/spec_multipart.rb
index 8a214111..1510b2a2 100644
--- a/test/spec_multipart.rb
+++ b/test/spec_multipart.rb
@@ -193,7 +193,7 @@ describe Rack::Multipart do
Timeout::timeout(10) { Rack::Multipart.parse_multipart(env) }
end
- it 'raises an EOF error on content-length mistmatch' do
+ it 'raises an EOF error on content-length mismatch' do
env = Rack::MockRequest.env_for("/", multipart_fixture(:empty))
env['rack.input'] = StringIO.new
assert_raises(EOFError) do
diff --git a/test/spec_show_exceptions.rb b/test/spec_show_exceptions.rb
index d0fdf0fd..64c5bc19 100644
--- a/test/spec_show_exceptions.rb
+++ b/test/spec_show_exceptions.rb
@@ -37,7 +37,7 @@ describe Rack::ShowExceptions do
req = Rack::MockRequest.new(
show_exceptions(
- lambda{|env| raise RuntimeError, "foo", ["nonexistant.rb:2:in `a': adf (RuntimeError)", "bad-backtrace"] }
+ lambda{|env| raise RuntimeError, "foo", ["nonexistent.rb:2:in `a': adf (RuntimeError)", "bad-backtrace"] }
))
res = req.get("/", "HTTP_ACCEPT" => "text/html")
@@ -49,7 +49,7 @@ describe Rack::ShowExceptions do
assert_includes(res.body, 'ShowExceptions')
assert_includes(res.body, 'No GET data')
assert_includes(res.body, 'No POST data')
- assert_includes(res.body, 'nonexistant.rb')
+ assert_includes(res.body, 'nonexistent.rb')
refute_includes(res.body, 'bad-backtrace')
end