Sha256: 9df3eb80caac89dc1bcaad4572bf0411b6db6dc10e6a44eebb827fe9f275611f
Contents?: true
Size: 695 Bytes
Versions: 4
Compression:
Stored size: 695 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) require 'tempfile' describe Cool.io::UNIXListener do before :each do @tmp = Tempfile.new('coolio_unix_listener_spec') File.unlink(@tmp.path).should == 1 File.exist?(@tmp.path).should == false end it "creates a new UNIXListener" do listener = Cool.io::UNIXListener.new(@tmp.path) File.socket?(@tmp.path).should == true end it "builds off an existing UNIXServer" do unix_server = UNIXServer.new(@tmp.path) File.socket?(@tmp.path).should == true listener = Cool.io::UNIXListener.new(unix_server) File.socket?(@tmp.path).should == true listener.fileno.should == unix_server.fileno end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cool.io-1.1.1 | spec/unix_listener_spec.rb |
cool.io-1.1.0 | spec/unix_listener_spec.rb |
cool.io-1.0.0 | spec/unix_listener_spec.rb |
cool.io-0.9.0 | spec/unix_listener_spec.rb |