summaryrefslogtreecommitdiff
path: root/spec/ruby
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-18 19:36:10 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-18 19:36:10 +0000
commit946c08089268a72690362e9ac0677d82a59c2ca3 (patch)
tree27a18518df326608c6f735bde567eb18071894be /spec/ruby
parent08563f2e14853e43f0efd9e005fd793a2a58e445 (diff)
Adapt spec to consider Solaris
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby')
-rw-r--r--spec/ruby/library/socket/addrinfo/getnameinfo_spec.rb17
1 files changed, 11 insertions, 6 deletions
diff --git a/spec/ruby/library/socket/addrinfo/getnameinfo_spec.rb b/spec/ruby/library/socket/addrinfo/getnameinfo_spec.rb
index eb600f3e66..2d5c7575d0 100644
--- a/spec/ruby/library/socket/addrinfo/getnameinfo_spec.rb
+++ b/spec/ruby/library/socket/addrinfo/getnameinfo_spec.rb
@@ -8,17 +8,22 @@ describe 'Addrinfo#getnameinfo' do
@addr = Addrinfo.tcp(ip_address, 80)
end
- it 'returns the node and service names' do
- host, service = @addr.getnameinfo
+ platform_is_not :solaris do
+ it 'returns the node and service names' do
+ host, service = @addr.getnameinfo
+ service.should == 'http'
+ end
+ end
- host.should be_an_instance_of(String)
- service.should == 'http'
+ platform_is :solaris do
+ it 'returns the node and service names' do
+ host, service = @addr.getnameinfo
+ service.should == '80'
+ end
end
it 'accepts flags as a Fixnum as the first argument' do
host, service = @addr.getnameinfo(Socket::NI_NUMERICSERV)
-
- host.should be_an_instance_of(String)
service.should == '80'
end
end