summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/unixsocket/socketpair_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/unixsocket/socketpair_spec.rb')
-rw-r--r--spec/ruby/library/socket/unixsocket/socketpair_spec.rb19
1 files changed, 3 insertions, 16 deletions
diff --git a/spec/ruby/library/socket/unixsocket/socketpair_spec.rb b/spec/ruby/library/socket/unixsocket/socketpair_spec.rb
index 5f34008df3..a8bfb412e5 100644
--- a/spec/ruby/library/socket/unixsocket/socketpair_spec.rb
+++ b/spec/ruby/library/socket/unixsocket/socketpair_spec.rb
@@ -1,20 +1,7 @@
require_relative '../spec_helper'
-require_relative '../fixtures/classes'
-require_relative '../shared/partially_closable_sockets'
-require_relative 'shared/pair'
-with_feature :unix_socket do
- describe "UNIXSocket.socketpair" do
- it_should_behave_like :unixsocket_pair
- it_should_behave_like :partially_closable_sockets
-
- before :each do
- @s1, @s2 = UNIXSocket.socketpair
- end
-
- after :each do
- @s1.close
- @s2.close
- end
+describe "UNIXSocket.socketpair" do
+ it "is an alias of UNIXSocket.pair" do
+ UNIXSocket.method(:socketpair).should == UNIXSocket.method(:pair)
end
end