1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-06-27 21:02:36 +02:00
parent c940397116
commit d80e44deec
157 changed files with 581 additions and 543 deletions

View file

@ -52,15 +52,10 @@ module FileSpecs
end
def self.socket
require 'socket'
name = tmp("ftype_socket.socket")
rm_r name
begin
socket = UNIXServer.new name
rescue ArgumentError => error
error.message.should =~ /too long/
return
end
require_relative '../../../library/socket/fixtures/classes.rb'
name = SocketSpecs.socket_path
socket = UNIXServer.new name
begin
yield name
ensure