summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_multipart.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/cgi/test_cgi_multipart.rb')
-rwxr-xr-xtest/cgi/test_cgi_multipart.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb
index 18eb741d77..c4ec833f84 100755
--- a/test/cgi/test_cgi_multipart.rb
+++ b/test/cgi/test_cgi_multipart.rb
@@ -213,7 +213,7 @@ class CGIMultipartTest < Test::Unit::TestCase
]
original = _set_const(CGI, :MAX_MULTIPART_LENGTH, 2 * 1024)
begin
- ex = assert_raise(StandardError) do
+ ex = assert_raises(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_raise(StandardError) do
+ ex = assert_raises(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_raise(EOFError) do
+ ex = assert_raises(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_raise(EOFError) do
+ ex = assert_raises(EOFError) do
cgi = CGI.new
end
assert_equal("bad content body", ex.message)