From e87fb88be844f0fae736768846954b6f6f7dc7c3 Mon Sep 17 00:00:00 2001 From: eregon Date: Tue, 25 Sep 2018 10:41:16 +0000 Subject: Update to ruby/spec@241f9e7 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/library/socket/ancillarydata/family_spec.rb | 2 +- spec/ruby/library/socket/ancillarydata/initialize_spec.rb | 2 +- spec/ruby/library/socket/ancillarydata/int_spec.rb | 4 ++-- spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb | 4 ++-- spec/ruby/library/socket/ancillarydata/ipv6_pktinfo_spec.rb | 4 ++-- spec/ruby/library/socket/ancillarydata/level_spec.rb | 2 +- spec/ruby/library/socket/ancillarydata/type_spec.rb | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) (limited to 'spec/ruby/library/socket/ancillarydata') diff --git a/spec/ruby/library/socket/ancillarydata/family_spec.rb b/spec/ruby/library/socket/ancillarydata/family_spec.rb index b742e0c6db..975f0d2538 100644 --- a/spec/ruby/library/socket/ancillarydata/family_spec.rb +++ b/spec/ruby/library/socket/ancillarydata/family_spec.rb @@ -2,7 +2,7 @@ require_relative '../spec_helper' with_feature :ancillary_data do describe 'Socket::AncillaryData#family' do - it 'returns the family as a Fixnum' do + it 'returns the family as an Integer' do Socket::AncillaryData.new(:INET, :SOCKET, :RIGHTS, '').family.should == Socket::AF_INET end end diff --git a/spec/ruby/library/socket/ancillarydata/initialize_spec.rb b/spec/ruby/library/socket/ancillarydata/initialize_spec.rb index c700404799..d4788d0f68 100644 --- a/spec/ruby/library/socket/ancillarydata/initialize_spec.rb +++ b/spec/ruby/library/socket/ancillarydata/initialize_spec.rb @@ -2,7 +2,7 @@ require_relative '../spec_helper' with_feature :ancillary_data do describe 'Socket::AncillaryData#initialize' do - describe 'using Fixnums for the family, level, and type' do + describe 'using Integers for the family, level, and type' do before do @data = Socket::AncillaryData .new(Socket::AF_INET, Socket::IPPROTO_IP, Socket::IP_RECVTTL, 'ugh') diff --git a/spec/ruby/library/socket/ancillarydata/int_spec.rb b/spec/ruby/library/socket/ancillarydata/int_spec.rb index 75608a28b8..0d7c5e3652 100644 --- a/spec/ruby/library/socket/ancillarydata/int_spec.rb +++ b/spec/ruby/library/socket/ancillarydata/int_spec.rb @@ -28,13 +28,13 @@ with_feature :ancillary_data do end describe 'Socket::AncillaryData#int' do - it 'returns the data as a Fixnum' do + it 'returns the data as an Integer' do data = Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, 4) data.int.should == 4 end - it 'raises when the data is not a Fixnum' do + it 'raises when the data is not an Integer' do data = Socket::AncillaryData.new(:UNIX, :SOCKET, :RIGHTS, 'ugh') lambda { data.int }.should raise_error(TypeError) diff --git a/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb b/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb index 1bc92e3373..809d087161 100644 --- a/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb +++ b/spec/ruby/library/socket/ancillarydata/ip_pktinfo_spec.rb @@ -71,7 +71,7 @@ with_feature :ancillary_data, :pktinfo do end it 'stores the ifindex at index 1' do - @info[1].should be_an_instance_of(Fixnum) + @info[1].should be_kind_of(Integer) end it 'stores an Addrinfo at index 2' do @@ -94,7 +94,7 @@ with_feature :ancillary_data, :pktinfo do end describe 'the ifindex' do - it 'is a Fixnum' do + it 'is an Integer' do @data.ip_pktinfo[1].should == 4 end end diff --git a/spec/ruby/library/socket/ancillarydata/ipv6_pktinfo_spec.rb b/spec/ruby/library/socket/ancillarydata/ipv6_pktinfo_spec.rb index 6315aba89c..dfaa5bf0f5 100644 --- a/spec/ruby/library/socket/ancillarydata/ipv6_pktinfo_spec.rb +++ b/spec/ruby/library/socket/ancillarydata/ipv6_pktinfo_spec.rb @@ -44,7 +44,7 @@ with_feature :ancillary_data, :ipv6_pktinfo do end it 'stores the ifindex at index 1' do - @info[1].should be_an_instance_of(Fixnum) + @info[1].should be_kind_of(Integer) end end @@ -63,7 +63,7 @@ with_feature :ancillary_data, :ipv6_pktinfo do end describe 'the ifindex' do - it 'is a Fixnum' do + it 'is an Integer' do @data.ipv6_pktinfo[1].should == 4 end end diff --git a/spec/ruby/library/socket/ancillarydata/level_spec.rb b/spec/ruby/library/socket/ancillarydata/level_spec.rb index 40b070a6d8..a2ff216f9d 100644 --- a/spec/ruby/library/socket/ancillarydata/level_spec.rb +++ b/spec/ruby/library/socket/ancillarydata/level_spec.rb @@ -2,7 +2,7 @@ require_relative '../spec_helper' with_feature :ancillary_data do describe 'Socket::AncillaryData#level' do - it 'returns the level as a Fixnum' do + it 'returns the level as an Integer' do Socket::AncillaryData.new(:INET, :SOCKET, :RIGHTS, '').level.should == Socket::SOL_SOCKET end end diff --git a/spec/ruby/library/socket/ancillarydata/type_spec.rb b/spec/ruby/library/socket/ancillarydata/type_spec.rb index 1a4b04ed57..972beeeca0 100644 --- a/spec/ruby/library/socket/ancillarydata/type_spec.rb +++ b/spec/ruby/library/socket/ancillarydata/type_spec.rb @@ -2,7 +2,7 @@ require_relative '../spec_helper' with_feature :ancillary_data do describe 'Socket::AncillaryData#type' do - it 'returns the type as a Fixnum' do + it 'returns the type as an Integer' do Socket::AncillaryData.new(:INET, :SOCKET, :RIGHTS, '').type.should == Socket::SCM_RIGHTS end end -- cgit v1.2.3