summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/addrinfo/connect_from_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/addrinfo/connect_from_spec.rb')
-rw-r--r--spec/ruby/library/socket/addrinfo/connect_from_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/library/socket/addrinfo/connect_from_spec.rb b/spec/ruby/library/socket/addrinfo/connect_from_spec.rb
index 55fce2e159..b1f6caa174 100644
--- a/spec/ruby/library/socket/addrinfo/connect_from_spec.rb
+++ b/spec/ruby/library/socket/addrinfo/connect_from_spec.rb
@@ -17,18 +17,18 @@ describe 'Addrinfo#connect_from' do
describe 'using separate arguments' do
it 'returns a Socket when no block is given' do
@socket = @addr.connect_from(ip_address, 0)
- @socket.should be_an_instance_of(Socket)
+ @socket.should.instance_of?(Socket)
end
it 'yields the Socket when a block is given' do
@addr.connect_from(ip_address, 0) do |socket|
- socket.should be_an_instance_of(Socket)
+ socket.should.instance_of?(Socket)
end
end
it 'treats the last argument as a set of options if it is a Hash' do
@socket = @addr.connect_from(ip_address, 0, timeout: 2)
- @socket.should be_an_instance_of(Socket)
+ @socket.should.instance_of?(Socket)
end
it 'binds the socket to the local address' do
@@ -48,18 +48,18 @@ describe 'Addrinfo#connect_from' do
it 'returns a Socket when no block is given' do
@socket = @addr.connect_from(@from_addr)
- @socket.should be_an_instance_of(Socket)
+ @socket.should.instance_of?(Socket)
end
it 'yields the Socket when a block is given' do
@addr.connect_from(@from_addr) do |socket|
- socket.should be_an_instance_of(Socket)
+ socket.should.instance_of?(Socket)
end
end
it 'treats the last argument as a set of options if it is a Hash' do
@socket = @addr.connect_from(@from_addr, timeout: 2)
- @socket.should be_an_instance_of(Socket)
+ @socket.should.instance_of?(Socket)
end
it 'binds the socket to the local address' do