summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/socket/getifaddrs_spec.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-25 10:41:16 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-25 10:41:16 +0000
commite87fb88be844f0fae736768846954b6f6f7dc7c3 (patch)
treecbe2ab069e40b5b7f3217ce95b793426b303a305 /spec/ruby/library/socket/socket/getifaddrs_spec.rb
parente59bf54b3a88d0465cca021afae7dc05b6db57a7 (diff)
Update to ruby/spec@241f9e7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/socket/socket/getifaddrs_spec.rb')
-rw-r--r--spec/ruby/library/socket/socket/getifaddrs_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/socket/socket/getifaddrs_spec.rb b/spec/ruby/library/socket/socket/getifaddrs_spec.rb
index 588a355700..ad23499ef9 100644
--- a/spec/ruby/library/socket/socket/getifaddrs_spec.rb
+++ b/spec/ruby/library/socket/socket/getifaddrs_spec.rb
@@ -25,7 +25,7 @@ describe 'Socket.getifaddrs' do
describe 'each returned Socket::Ifaddr' do
it 'has an interface index' do
@ifaddrs.each do |ifaddr|
- ifaddr.ifindex.should be_an_instance_of(Fixnum)
+ ifaddr.ifindex.should be_kind_of(Integer)
end
end
@@ -37,7 +37,7 @@ describe 'Socket.getifaddrs' do
it 'has a set of flags' do
@ifaddrs.each do |ifaddr|
- ifaddr.flags.should be_an_instance_of(Fixnum)
+ ifaddr.flags.should be_kind_of(Integer)
end
end
end
@@ -55,7 +55,7 @@ describe 'Socket.getifaddrs' do
it 'has an address family' do
@addrs.each do |addr|
- addr.afamily.should be_an_instance_of(Fixnum)
+ addr.afamily.should be_kind_of(Integer)
addr.afamily.should_not == Socket::AF_UNSPEC
end
end
@@ -75,7 +75,7 @@ describe 'Socket.getifaddrs' do
it 'has an address family' do
@addrs.each do |addr|
- addr.afamily.should be_an_instance_of(Fixnum)
+ addr.afamily.should be_kind_of(Integer)
addr.afamily.should_not == Socket::AF_UNSPEC
end
end
@@ -94,7 +94,7 @@ describe 'Socket.getifaddrs' do
it 'has an address family' do
@addrs.each do |addr|
- addr.afamily.should be_an_instance_of(Fixnum)
+ addr.afamily.should be_kind_of(Integer)
addr.afamily.should_not == Socket::AF_UNSPEC
end
end