Sha256: 0bdd465a57e0b2a0ff4eefc2f5f80994ca3eb6c733de0e00cac2a34f84fa7677
Contents?: true
Size: 668 Bytes
Versions: 49
Compression:
Stored size: 668 Bytes
Contents
require File.expand_path('../../../../../spec_helper', __FILE__) require 'net/http' describe "Net::HTTP#open_timeout" do it "returns the seconds to wait till the connection is open" do net = Net::HTTP.new("127.0.0.1") net.open_timeout.should be_nil net.open_timeout = 10 net.open_timeout.should eql(10) end end describe "Net::HTTP#open_timeout=" do it "sets the seconds to wait till the connection is open" do net = Net::HTTP.new("127.0.0.1") net.open_timeout = 10 net.open_timeout.should eql(10) end it "returns the newly set value" do net = Net::HTTP.new("127.0.0.1") (net.open_timeout = 10).should eql(10) end end
Version data entries
49 entries across 49 versions & 2 rubygems