Sha256: 6ac527b31976351c813a4ddb5040cd4b6a3a8dc069afc7b7338959e33a1c3e69

Contents?: true

Size: 174 Bytes

Versions: 3

Compression:

Stored size: 174 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubysl-net-http-1.0.1 spec/http/port_spec.rb
rubysl-net-http-2.0.4 spec/http/port_spec.rb
rubysl-net-http-1.0.0 spec/http/port_spec.rb