Sha256: 7a6198467500c2620ab82130ff990247667771273e80ddd8204106e7d8817421

Contents?: true

Size: 563 Bytes

Versions: 4

Compression:

Stored size: 563 Bytes

Contents

require File.expand_path('../../fixtures/classes', __FILE__)
require File.expand_path('../../shared/partially_closable_sockets', __FILE__)

platform_is_not :windows do
  describe "UNIXSocket partial closability" do

    before :each do
      @path = SocketSpecs.socket_path
      rm_r @path
      @server = UNIXServer.open(@path)
      @s1 = UNIXSocket.new(@path)
      @s2 = @server.accept
    end

    after :each do
      @server.close
      @s1.close
      @s2.close
      rm_r @path
    end

    it_should_behave_like "partially closable sockets"

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubysl-socket-1.0.1 spec/unixsocket/partially_closable_spec.rb
rubysl-socket-2.0.1 spec/unixsocket/partially_closable_spec.rb
rubysl-socket-1.0.0 spec/unixsocket/partially_closable_spec.rb
rubysl-socket-2.0.0 spec/unixsocket/partially_closable_spec.rb