ruby-changes:53122
From: nobu <ko1@a...>
Date: Wed, 24 Oct 2018 00:29:06 +0900 (JST)
Subject: [ruby-changes:53122] nobu:r65336 (trunk): getifaddrs_spec.rb: `should` returned `nil` on success
nobu 2018-10-24 00:29:01 +0900 (Wed, 24 Oct 2018) New Revision: 65336 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65336 Log: getifaddrs_spec.rb: `should` returned `nil` on success Modified files: trunk/spec/ruby/library/socket/socket/getifaddrs_spec.rb Index: spec/ruby/library/socket/socket/getifaddrs_spec.rb =================================================================== --- spec/ruby/library/socket/socket/getifaddrs_spec.rb (revision 65335) +++ spec/ruby/library/socket/socket/getifaddrs_spec.rb (revision 65336) @@ -50,6 +50,7 @@ describe 'Socket.getifaddrs' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/getifaddrs_spec.rb#L50 it 'is an Addrinfo' do @addrs.all? do |addr| addr.should be_an_instance_of(Addrinfo) + true end.should be_true end @@ -57,6 +58,7 @@ describe 'Socket.getifaddrs' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/getifaddrs_spec.rb#L58 @addrs.all? do |addr| addr.afamily.should be_kind_of(Integer) addr.afamily.should_not == Socket::AF_UNSPEC + true end.should be_true end end @@ -70,6 +72,7 @@ describe 'Socket.getifaddrs' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/getifaddrs_spec.rb#L72 it 'is an Addrinfo' do @addrs.all? do |addr| addr.should be_an_instance_of(Addrinfo) + true end.should be_true end @@ -77,6 +80,7 @@ describe 'Socket.getifaddrs' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/getifaddrs_spec.rb#L80 @addrs.all? do |addr| addr.afamily.should be_kind_of(Integer) addr.afamily.should_not == Socket::AF_UNSPEC + true end.should be_true end end @@ -89,6 +93,7 @@ describe 'Socket.getifaddrs' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/getifaddrs_spec.rb#L93 it 'is an Addrinfo' do @addrs.all? do |addr| addr.should be_an_instance_of(Addrinfo) + true end.should be_true end @@ -96,12 +101,14 @@ describe 'Socket.getifaddrs' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/socket/socket/getifaddrs_spec.rb#L101 @addrs.all? do |addr| addr.afamily.should be_kind_of(Integer) addr.afamily.should_not == Socket::AF_UNSPEC + true end.should be_true end it 'has an IP address' do @addrs.all? do |addr| addr.ip_address.should be_an_instance_of(String) + true end.should be_true end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/