aboutsummaryrefslogtreecommitdiffstats
path: root/test/socket/test_nonblock.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_nonblock.rb')
-rw-r--r--test/socket/test_nonblock.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb
index 526825269e..0109d19636 100644
--- a/test/socket/test_nonblock.rb
+++ b/test/socket/test_nonblock.rb
@@ -26,7 +26,7 @@ class TestSocketNonblock < Test::Unit::TestCase
end
assert_equal(Socket.unpack_sockaddr_in(c.getsockname), Socket.unpack_sockaddr_in(sockaddr))
if s.respond_to?(:nonblock?)
- assert s.nonblock?, 'accepted socket is non-blocking'
+ assert_predicate(s, :nonblock?, 'accepted socket is non-blocking')
end
ensure
serv.close if serv