summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/addrinfo/bind_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/addrinfo/bind_spec.rb')
-rw-r--r--spec/ruby/library/socket/addrinfo/bind_spec.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/spec/ruby/library/socket/addrinfo/bind_spec.rb b/spec/ruby/library/socket/addrinfo/bind_spec.rb
index c892b05756..cdd187771f 100644
--- a/spec/ruby/library/socket/addrinfo/bind_spec.rb
+++ b/spec/ruby/library/socket/addrinfo/bind_spec.rb
@@ -1,6 +1,5 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
-require File.expand_path('../../fixtures/classes', __FILE__)
-require 'socket'
+require_relative '../spec_helper'
+require_relative '../fixtures/classes'
describe "Addrinfo#bind" do
@@ -14,16 +13,16 @@ describe "Addrinfo#bind" do
it "returns a bound socket when no block is given" do
@socket = @addrinfo.bind
- @socket.should be_kind_of(Socket)
- @socket.closed?.should be_false
+ @socket.should.is_a?(Socket)
+ @socket.closed?.should == false
end
it "yields the socket if a block is given" do
@addrinfo.bind do |sock|
@socket = sock
- sock.should be_kind_of(Socket)
+ sock.should.is_a?(Socket)
end
- @socket.closed?.should be_true
+ @socket.closed?.should == true
end
end