summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/http/address_spec.rb
blob: 5fce76d767385ad332b7eff7d25ddace2fd958df (plain)
1
2
3
4
5
6
7
8
9
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