require 'net/http' require File.expand_path('../fixtures/http_server', __FILE__) describe "Net::HTTP#inspect" do before(:all) do NetHTTPSpecs.start_server end after(:all) do NetHTTPSpecs.stop_server end before(:each) do @net = Net::HTTP.new("localhost", 3333) end it "returns a String representation of self" do net = Net::HTTP.new("localhost", 3333) net.inspect.should be_kind_of(String) net.inspect.should == "#" net.start net.inspect.should == "#" end end