Sha256: 82dafa4e4accb8e02a9cf154290ecc3ea35a8049f6430731bd7f16c855dbadd3
Contents?: true
Size: 709 Bytes
Versions: 7
Compression:
Stored size: 709 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) require 'tempfile' describe Cool.io::UNIXListener, :env => :win 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
7 entries across 7 versions & 1 rubygems