Sha256: 8237b141cf506ce5e62a8a89c170ed58112692565fd25972e341656c13cd7e35
Contents?: true
Size: 700 Bytes
Versions: 3
Compression:
Stored size: 700 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) require 'tempfile' describe Cool.io::UNIXServer do before :each do @tmp = Tempfile.new('coolio_unix_server_spec') File.unlink(@tmp.path).should == 1 File.exist?(@tmp.path).should == false end it "creates a new Cool.io::UNIXServer" 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::UNIXServer.new(unix_server) File.socket?(@tmp.path).should == true listener.fileno.should == unix_server.fileno end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cool.io-1.1.0 | spec/unix_server_spec.rb |
cool.io-1.0.0 | spec/unix_server_spec.rb |
cool.io-0.9.0 | spec/unix_server_spec.rb |