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/socket/test_udp.rb | |
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/socket/test_udp.rb')
-rw-r--r-- | test/socket/test_udp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_udp.rb b/test/socket/test_udp.rb index b07a4b73b3..7d28ec2628 100644 --- a/test/socket/test_udp.rb +++ b/test/socket/test_udp.rb @@ -48,7 +48,7 @@ class TestSocket_UDPSocket < Test::Unit::TestCase s = UDPSocket.new - e = assert_raises(Errno::EADDRINUSE) do + e = assert_raise(Errno::EADDRINUSE) do s.bind(host, port) end @@ -61,7 +61,7 @@ class TestSocket_UDPSocket < Test::Unit::TestCase def test_send_too_long u = UDPSocket.new - e = assert_raises Errno::EMSGSIZE do + e = assert_raise(Errno::EMSGSIZE) do u.send "\0" * 100_000, 0, "127.0.0.1", 7 # echo end |