1 require File.dirname(__FILE__) + '/../../../spec_helper'
2 require File.dirname(__FILE__) + '/../fixtures/classes'
5 describe "UNIXServer" do
6 not_supported_on :windows do
7 it "#new should create a new UNIXServer" do
8 temp = Tempfile.new 'unixserver_spec'
11 unix = UNIXServer.new(path)
12 unix.path.should == path
13 unix.addr.should == ["AF_UNIX", path]
14 lambda {unix.peeraddr}.should raise_error(Errno::ENOTCONN)