ruby-changes:52101
From: naruse <ko1@a...>
Date: Sun, 12 Aug 2018 01:25:27 +0900 (JST)
Subject: [ruby-changes:52101] naruse:r64309 (trunk): fix r64296
naruse 2018-08-12 01:25:21 +0900 (Sun, 12 Aug 2018) New Revision: 64309 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64309 Log: fix r64296 Modified files: trunk/spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb Index: spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb =================================================================== --- spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb (revision 64308) +++ spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb (revision 64309) @@ -2,20 +2,20 @@ require_relative '../spec_helper' https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/addrinfo/getaddrinfo_spec.rb#L2 require_relative '../fixtures/classes' describe 'Addrinfo.getaddrinfo' do - it 'returns an Array of Addrinfo instances' do - array = Addrinfo.getaddrinfo('localhost', 80) + platform_is_not :solaris do + it 'returns an Array of Addrinfo instances' do + array = Addrinfo.getaddrinfo('localhost', 80) - array.should be_an_instance_of(Array) - array[0].should be_an_instance_of(Addrinfo) + array.should be_an_instance_of(Array) + array[0].should be_an_instance_of(Addrinfo) + end end SocketSpecs.each_ip_protocol do |family, ip_address| - platform_is_not :solaris do - it 'sets the IP address of the Addrinfo instances' do - array = Addrinfo.getaddrinfo(ip_address, 80) + it 'sets the IP address of the Addrinfo instances' do + array = Addrinfo.getaddrinfo(ip_address, 80) - array[0].ip_address.should == ip_address - end + array[0].ip_address.should == ip_address end it 'sets the port of the Addrinfo instances' do -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/