summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/socket/unixsocket/peeraddr_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/socket/unixsocket/peeraddr_spec.rb')
-rw-r--r--spec/rubyspec/library/socket/unixsocket/peeraddr_spec.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/rubyspec/library/socket/unixsocket/peeraddr_spec.rb b/spec/rubyspec/library/socket/unixsocket/peeraddr_spec.rb
deleted file mode 100644
index 14dccf7917..0000000000
--- a/spec/rubyspec/library/socket/unixsocket/peeraddr_spec.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
-require File.expand_path('../../fixtures/classes', __FILE__)
-
-describe "UNIXSocket#peeraddr" do
-
- platform_is_not :windows do
- before :each do
- @path = SocketSpecs.socket_path
- @server = UNIXServer.open(@path)
- @client = UNIXSocket.open(@path)
- end
-
- after :each do
- @client.close
- @server.close
- SocketSpecs.rm_socket @path
- end
-
- it "returns the address familly and path of the server end of the connection" do
- @client.peeraddr.should == ["AF_UNIX", @path]
- end
-
- it "raises an error in server sockets" do
- lambda { @server.peeraddr }.should raise_error
- end
- end
-
-end