require_relative '../../../../spec_helper' require 'net/http' describe "Net::HTTP#address" do it "returns the current host name" do net = Net::HTTP.new("localhost") net.address.should == "localhost" end end