summaryrefslogtreecommitdiff
path: root/test/net/http
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/http')
-rw-r--r--test/net/http/test_http.rb2
-rw-r--r--test/net/http/test_httpresponse.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index b72aadd54c9..1bd085a90b8 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -899,7 +899,7 @@ class TestNetHTTPKeepAlive < Test::Unit::TestCase
end
start {|http|
- assert_raises(EOFError, Errno::ECONNRESET, IOError) {
+ assert_raise(EOFError, Errno::ECONNRESET, IOError) {
http.get('/')
}
}
diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb
index 0193a153e46..ba8b45eaca9 100644
--- a/test/net/http/test_httpresponse.rb
+++ b/test/net/http/test_httpresponse.rb
@@ -253,7 +253,7 @@ Connection: close
hello
EOS
- assert_raises Net::HTTPBadResponse do
+ assert_raise Net::HTTPBadResponse do
Net::HTTPResponse.read_new(io)
end
end