Sha256: 615bb3ec6e6507f825541351940a7641636cf095df3bab166d80ce1faef6d5df
Contents?: true
Size: 585 Bytes
Versions: 3
Compression:
Stored size: 585 Bytes
Contents
require 'net/http' require File.expand_path('../fixtures/http_server', __FILE__) describe "Net::HTTP#inspect" do before(:all) do NetHTTPSpecs.start_server end after(:all) do NetHTTPSpecs.stop_server end before(:each) do @net = Net::HTTP.new("localhost", 3333) end it "returns a String representation of self" do net = Net::HTTP.new("localhost", 3333) net.inspect.should be_kind_of(String) net.inspect.should == "#<Net::HTTP localhost:3333 open=false>" net.start net.inspect.should == "#<Net::HTTP localhost:3333 open=true>" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubysl-net-http-1.0.1 | spec/http/inspect_spec.rb |
rubysl-net-http-2.0.4 | spec/http/inspect_spec.rb |
rubysl-net-http-1.0.0 | spec/http/inspect_spec.rb |