diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-02 02:18:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-02 02:18:44 +0000 |
commit | bfb7e27fe2b73e054d0382990ceef7189de71d28 (patch) | |
tree | 6b64fce04b19a8e1531f60a7d3d47c8a9fc97a20 /test/net/http | |
parent | 130a077f74031a16430ec8b20955b9e57f75397c (diff) | |
download | ruby-bfb7e27fe2b73e054d0382990ceef7189de71d28.tar.gz |
use assert_raise
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http')
-rw-r--r-- | test/net/http/test_http.rb | 2 | ||||
-rw-r--r-- | test/net/http/test_httpresponse.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index b72aadd54c..1bd085a90b 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 0193a153e4..ba8b45eaca 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 |