Skip to content

Commit

Permalink
Fix typo in socketpair_spec.rb.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Oct 6, 2016
1 parent 7c4d118 commit 3dfa505
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions spec/ruby/library/socket/shared/socketpair.rb
Expand Up @@ -9,13 +9,15 @@
end

it "responses with array of two sockets" do
s1, s2 = Socket.public_send(@method, :UNIX, :STREAM)
begin
s1, s2 = Socket.public_send(@method, :UNIX, :STREAM)

s1.should be_an_instance_of(Socket)
s2.should be_an_instance_of(Socket)
ensure
s1.close
s2.close
s1.should be_an_instance_of(Socket)
s2.should be_an_instance_of(Socket)
ensure
s1.close
s2.close
end
end
end
end

0 comments on commit 3dfa505

Please sign in to comment.