summaryrefslogtreecommitdiff
path: root/test/socket/test_socket.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_socket.rb')
-rw-r--r--test/socket/test_socket.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
index 6c3d6e198a..598a05d123 100644
--- a/test/socket/test_socket.rb
+++ b/test/socket/test_socket.rb
@@ -774,7 +774,7 @@ class TestSocket < Test::Unit::TestCase
begin
Socket.getaddrinfo("example.com", 80, "AF_UNIX")
rescue => e
- assert_equal([Socket::EAI_FAMILY, Socket::EAI_FAIL].include?(e.error_code), true)
+ assert_include([Socket::EAI_FAMILY, Socket::EAI_FAIL], e.error_code)
end
end