aboutsummaryrefslogtreecommitdiffstats
path: root/test/socket/test_addrinfo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_addrinfo.rb')
-rw-r--r--test/socket/test_addrinfo.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb
index cf6aec30df..c0aeba6f76 100644
--- a/test/socket/test_addrinfo.rb
+++ b/test/socket/test_addrinfo.rb
@@ -35,7 +35,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase
assert_equal(Socket::AF_INET, ai.afamily)
assert_equal(Socket::PF_INET, ai.pfamily)
assert_equal(Socket::SOCK_STREAM, ai.socktype)
- assert_includes([0, Socket::IPPROTO_TCP], ai.protocol)
+ assert_include([0, Socket::IPPROTO_TCP], ai.protocol)
end
def test_addrinfo_udp
@@ -44,7 +44,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase
assert_equal(Socket::AF_INET, ai.afamily)
assert_equal(Socket::PF_INET, ai.pfamily)
assert_equal(Socket::SOCK_DGRAM, ai.socktype)
- assert_includes([0, Socket::IPPROTO_UDP], ai.protocol)
+ assert_include([0, Socket::IPPROTO_UDP], ai.protocol)
end
def test_addrinfo_ip_unpack