mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
3c419de10b
commit
0f6375be69
4 changed files with 16 additions and 9 deletions
|
@ -213,7 +213,7 @@ class CGIMultipartTest < Test::Unit::TestCase
|
|||
]
|
||||
original = _set_const(CGI, :MAX_MULTIPART_LENGTH, 2 * 1024)
|
||||
begin
|
||||
ex = assert_raises(StandardError) do
|
||||
ex = assert_raise(StandardError) do
|
||||
_test_multipart()
|
||||
end
|
||||
assert_equal("too large multipart data.", ex.message)
|
||||
|
@ -232,7 +232,7 @@ class CGIMultipartTest < Test::Unit::TestCase
|
|||
500.times { @data << item }
|
||||
#original = _set_const(CGI, :MAX_MULTIPART_COUNT, 128)
|
||||
begin
|
||||
ex = assert_raises(StandardError) do
|
||||
ex = assert_raise(StandardError) do
|
||||
_test_multipart()
|
||||
end
|
||||
assert_equal("too many parameters.", ex.message)
|
||||
|
@ -253,7 +253,7 @@ class CGIMultipartTest < Test::Unit::TestCase
|
|||
#p input2
|
||||
input2
|
||||
end
|
||||
ex = assert_raises(EOFError) do
|
||||
ex = assert_raise(EOFError) do
|
||||
cgi = CGI.new
|
||||
end
|
||||
assert_equal("bad boundary end of body part", ex.message)
|
||||
|
@ -264,7 +264,7 @@ class CGIMultipartTest < Test::Unit::TestCase
|
|||
#p input2
|
||||
input2
|
||||
end
|
||||
ex = assert_raises(EOFError) do
|
||||
ex = assert_raise(EOFError) do
|
||||
cgi = CGI.new
|
||||
end
|
||||
assert_equal("bad content body", ex.message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue