1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2017-05-14 14:09:56 +00:00
parent d593aed7b7
commit a5b83b03ad
47 changed files with 254 additions and 172 deletions

View file

@ -5,16 +5,15 @@ platform_is_not :windows do
describe "UNIXServer#accept" do
before :each do
@path = SocketSpecs.socket_path
rm_r @path
end
after :each do
rm_r @path
SocketSpecs.rm_socket @path
end
it "accepts what is written by the client" do
server = UNIXServer.open(SocketSpecs.socket_path)
client = UNIXSocket.open(SocketSpecs.socket_path)
server = UNIXServer.open(@path)
client = UNIXSocket.open(@path)
client.send('hello', 0)