Updated RubySpec source to 55122684.
[rbx.git] / spec / frozen / 1.8 / library / socket / unixserver / shared / new.rb
blobf3b6f873044520c98a231a6781000900a9e5bb5e
1 require File.dirname(__FILE__) + '/../../../../spec_helper'
2 require File.dirname(__FILE__) + '/../../fixtures/classes'
3 require 'tempfile'
5 shared :new do |cmd|
6   describe "UNIXServer.#{cmd}" do
7     not_supported_on :windows do
8       
9       it "creates a new UNIXServer" do
10         path = tmp("unixserver_spec")
11         File.unlink(path) if File.exists?(path)
12         unix = UNIXServer.new(path)
13         unix.path.should == path
14         unix.addr.should == ["AF_UNIX", path]
15         File.unlink(path) 
16       end
17     end
18   end
19 end