I read your pastie and your Proxy class is tightly coupled with Webrick, you should decouple it and supply mocked object in the test environment.
Some people use approach like this: class A def initialize(server = WEBrick::HTTPServer) end end And in test env initialize the A class like this: A.new(MockedHTTPServer) _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users