aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/library/net/http/http/address_spec.rb
blob: a0fe28fb9e7eacd6f3445e4e4c8c904cdac592f6 (plain)
1
2
3
4
5
6
7
8
9
require File.expand_path('../../../../../spec_helper', __FILE__)
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