Updated RubySpec source to 55122684.
[rbx.git] / spec / frozen / 1.8 / library / net / http / conn_port_spec.rb
blob02e6082d9b9731552a8d1b67af245b668e74c795
1 require File.dirname(__FILE__) + '/../../../spec_helper'
2 require 'net/http'
4 describe "Net::HTTP#conn_port" do
5   it "is private" do
6     Net::HTTP.private_instance_methods.should include("conn_port")
7   end
8   
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)
15   end
16 end