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