summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/cgi/test_cgi_core.rb')
-rwxr-xr-xtest/cgi/test_cgi_core.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb
index 36a3c3003c..6f420199d3 100755
--- a/test/cgi/test_cgi_core.rb
+++ b/test/cgi/test_cgi_core.rb
@@ -110,7 +110,7 @@ class CGICoreTest < Test::Unit::TestCase
}
ENV.update(@environ)
cgi = CGI.new
- assert_not_nil(cgi.cookies)
+ refute_nil(cgi.cookies)
[ ['_session_id', ['12345'], ],
['name1', ['val1', 'val2'], ],
].each do |key, expected|
@@ -131,7 +131,7 @@ class CGICoreTest < Test::Unit::TestCase
'CONTENT_LENGTH' => (64 * 1024 * 1024).to_s
}
ENV.update(@environ)
- ex = assert_raise(StandardError) do
+ ex = assert_raises(StandardError) do
cgi = CGI.new
end
assert_equal("too large post data.", ex.message)
@@ -285,7 +285,7 @@ class CGICoreTest < Test::Unit::TestCase
ENV.update(@environ)
## no htmltype
cgi = CGI.new
- assert_raise(NoMethodError) do cgi.doctype end
+ assert_raises(NoMethodError) do cgi.doctype end
## html3
cgi = CGI.new('html3')
expected = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'