summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/http/port_spec.rb
blob: 7de295ca75777f733ba65738b03fd46b8f9aa740 (plain)
1
2
3
4
5
6
7
8
9
require_relative '../../../../spec_helper'
require 'net/http'

describe "Net::HTTP#port" do
  it "returns the current port number" do
    net = Net::HTTP.new("localhost", 3333)
    net.port.should eql(3333)
  end
end