summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/unixsocket/pair_spec.rb
blob: 9690142668e498da1b10fb7e43783694c209d36a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require_relative '../spec_helper'
require_relative '../fixtures/classes'
require_relative '../shared/partially_closable_sockets'
require_relative 'shared/pair'

describe "UNIXSocket.pair" do
  it_should_behave_like :unixsocket_pair
  it_should_behave_like :partially_closable_sockets

  before :each do
    @s1, @s2 = UNIXSocket.pair
  end

  after :each do
    @s1.close
    @s2.close
  end
end