summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/socket/unixserver/shared/new.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/library/socket/unixserver/shared/new.rb')
-rw-r--r--spec/rubyspec/library/socket/unixserver/shared/new.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/rubyspec/library/socket/unixserver/shared/new.rb b/spec/rubyspec/library/socket/unixserver/shared/new.rb
index 9b0798b828..2018140caa 100644
--- a/spec/rubyspec/library/socket/unixserver/shared/new.rb
+++ b/spec/rubyspec/library/socket/unixserver/shared/new.rb
@@ -5,14 +5,13 @@ require 'tempfile'
describe :unixserver_new, shared: true do
platform_is_not :windows do
before :each do
- @path = tmp("unixserver_spec")
- rm_r @path
+ @path = SocketSpecs.socket_path
end
after :each do
@server.close if @server
@server = nil
- rm_r @path
+ SocketSpecs.rm_socket @path
end
it "creates a new UNIXServer" do