1 require File.dirname(__FILE__) + '/../../../spec_helper'
4 describe "Net::HTTP#conn_port" do
6 Net::HTTP.private_instance_methods.should include("conn_port")
9 it "returns the current port" do
10 net = Net::HTTP.new("localhost")
11 net.send(:conn_port).should eql(80)
13 net = Net::HTTP.new("localhost", 3333)
14 net.send(:conn_port).should eql(3333)