summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/unixsocket
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/unixsocket')
-rw-r--r--spec/ruby/library/socket/unixsocket/open_spec.rb2
-rw-r--r--spec/ruby/library/socket/unixsocket/shared/new.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/socket/unixsocket/open_spec.rb b/spec/ruby/library/socket/unixsocket/open_spec.rb
index ad5048fedd..99ad151bb8 100644
--- a/spec/ruby/library/socket/unixsocket/open_spec.rb
+++ b/spec/ruby/library/socket/unixsocket/open_spec.rb
@@ -21,7 +21,7 @@ describe "UNIXSocket.open" do
it "opens a unix socket on the specified file and yields it to the block" do
UNIXSocket.open(@path) do |client|
client.addr[0].should == "AF_UNIX"
- client.closed?.should == false
+ client.should_not.closed?
end
end
end
diff --git a/spec/ruby/library/socket/unixsocket/shared/new.rb b/spec/ruby/library/socket/unixsocket/shared/new.rb
index 76a4e1701e..bfb7ed3886 100644
--- a/spec/ruby/library/socket/unixsocket/shared/new.rb
+++ b/spec/ruby/library/socket/unixsocket/shared/new.rb
@@ -18,7 +18,7 @@ describe :unixsocket_new, shared: true do
@client = UNIXSocket.send(@method, @path)
@client.addr[0].should == "AF_UNIX"
- @client.closed?.should == false
+ @client.should_not.closed?
end
end
end