Sha256: 0eb9755c19a3b892ad8cbd70c397aa0bfe8ca07d8821c07adfdf4f2be5a52b6d
Contents?: true
Size: 579 Bytes
Versions: 6
Compression:
Stored size: 579 Bytes
Contents
describe :net_http_started_p, :shared => true 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 true when self has been started" do @net.start @net.send(@method).should be_true end it "returns false when self has not been started yet" do @net.send(@method).should be_false end it "returns false when self has been stopped again" do @net.start @net.finish @net.send(@method).should be_false end end
Version data entries
6 entries across 6 versions & 2 rubygems