1 require File.dirname(__FILE__) + '/../spec_helper'
3 describe Backends::UnixServer do
5 @backend = Backends::UnixServer.new('/tmp/thin-test.sock')
15 it "should disconnect" do
23 it "should remove socket file on close" do
25 File.exist?('/tmp/thin-test.sock').should be_false
29 describe UnixConnection do
31 @connection = UnixConnection.new(nil)
34 it "should return 127.0.0.1 as remote_address" do
35 @connection.remote_address.should == '127.0.0.1'