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 | ae042f21fb695fc80eb19273fa542e8dad85f19f (patch) | |
tree | 6b64fce04b19a8e1531f60a7d3d47c8a9fc97a20 /test/socket/test_tcp.rb | |
parent | 21f2c194bbf781d9228584f3e93f4a93b33f5632 (diff) | |
download | ruby-ae042f21fb695fc80eb19273fa542e8dad85f19f.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/socket/test_tcp.rb')
-rw-r--r-- | test/socket/test_tcp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb index a6c332c6c4..5e3528e242 100644 --- a/test/socket/test_tcp.rb +++ b/test/socket/test_tcp.rb @@ -79,9 +79,9 @@ class TestSocket_TCPSocket < Test::Unit::TestCase def test_accept_nonblock TCPServer.open("localhost", 0) {|svr| - assert_raises(IO::WaitReadable) { svr.accept_nonblock } + assert_raise(IO::WaitReadable) { svr.accept_nonblock } assert_equal :wait_readable, svr.accept_nonblock(exception: false) - assert_raises(IO::WaitReadable) { svr.accept_nonblock(exception: true) } + assert_raise(IO::WaitReadable) { svr.accept_nonblock(exception: true) } } end end if defined?(TCPSocket) |