summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-02 15:59:18 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-02 15:59:18 +0000
commitaa26e9d9c0ea1567f24ea02b007c4b8debb82b52 (patch)
treebd39550d21152a4f47dac31dd0ea7d6c5f47422c /test/socket
parentdffcadb4eaf4620c144ad813ddec6ed7c014e971 (diff)
follow r41034
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_sockopt.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/socket/test_sockopt.rb b/test/socket/test_sockopt.rb
index b23e44d..5ed24d8 100644
--- a/test/socket/test_sockopt.rb
+++ b/test/socket/test_sockopt.rb
@@ -26,21 +26,21 @@ class TestSocketOption < Test::Unit::TestCase
end
def test_ip_multicast_loop
- sockopt = Socket::Option.ip_multicast_loop(128)
+ sockopt = Socket::Option.ipv4_multicast_loop(128)
assert_equal('#<Socket::Option: INET IP MULTICAST_LOOP 128>', sockopt.inspect)
assert_equal(Socket::AF_INET, sockopt.family)
assert_equal(Socket::IPPROTO_IP, sockopt.level)
assert_equal(Socket::IP_MULTICAST_LOOP, sockopt.optname)
- assert_equal(128, sockopt.ip_multicast_loop)
+ assert_equal(128, sockopt.ipv4_multicast_loop)
end
def test_ip_multicast_ttl
- sockopt = Socket::Option.ip_multicast_ttl(128)
+ sockopt = Socket::Option.ipv4_multicast_ttl(128)
assert_equal('#<Socket::Option: INET IP MULTICAST_TTL 128>', sockopt.inspect)
assert_equal(Socket::AF_INET, sockopt.family)
assert_equal(Socket::IPPROTO_IP, sockopt.level)
assert_equal(Socket::IP_MULTICAST_TTL, sockopt.optname)
- assert_equal(128, sockopt.ip_multicast_ttl)
+ assert_equal(128, sockopt.ipv4_multicast_ttl)
end
def test_unpack