summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_core.rb
diff options
context:
space:
mode:
authorxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 14:43:05 +0000
committerxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 14:43:05 +0000
commit0f6375be69ecbeb5a98596d61ba196979e1dbe08 (patch)
tree15f0ad0e9367435081322b627f4108262c1daef6 /test/cgi/test_cgi_core.rb
parent3c419de10b113aceea7db10eb0d4521086696bc9 (diff)
* test/cgi/test_cgi_multipart.rb : revert last change.
( deprecated is assert_raises. ) * test/cgi/test_cgi_core.rb : ditto. * test/cgi/test_cgi_header.rb : ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi/test_cgi_core.rb')
-rwxr-xr-xtest/cgi/test_cgi_core.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb
index 1298ae792d1..9e6e61819ab 100755
--- a/test/cgi/test_cgi_core.rb
+++ b/test/cgi/test_cgi_core.rb
@@ -122,7 +122,7 @@ class CGICoreTest < Test::Unit::TestCase
assert_equal({"str"=>"\xBE\xBE\xB9\xBE".force_encoding("ASCII-8BIT")},hash)
$stdin.rewind
- assert_raises(CGI::InvalidEncoding) do
+ assert_raise(CGI::InvalidEncoding) do
cgi = CGI.new(:accept_charset=>"UTF-8")
end
@@ -148,7 +148,7 @@ class CGICoreTest < Test::Unit::TestCase
}
ENV.update(@environ)
cgi = CGI.new
- refute_nil(cgi.cookies)
+ assert_not_equal(nil,cgi.cookies)
[ ['_session_id', ['12345'], ],
['name1', ['val1', 'val2'], ],
].each do |key, expected|
@@ -169,7 +169,7 @@ class CGICoreTest < Test::Unit::TestCase
'CONTENT_LENGTH' => (64 * 1024 * 1024).to_s
}
ENV.update(@environ)
- ex = assert_raises(StandardError) do
+ ex = assert_raise(StandardError) do
cgi = CGI.new
end
assert_equal("too large post data.", ex.message)
@@ -323,7 +323,7 @@ class CGICoreTest < Test::Unit::TestCase
ENV.update(@environ)
## no htmltype
cgi = CGI.new
- assert_raises(NoMethodError) do cgi.doctype end
+ assert_raise(NoMethodError) do cgi.doctype end
## html3
cgi = CGI.new('html3')
expected = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'