Sha256: f448f79503b912d1c66b86050a4a007567355197527565b64d35fe86194dcc81

Contents?: true

Size: 599 Bytes

Versions: 48

Compression:

Stored size: 599 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("127.0.0.1", NetHTTPSpecs.server_port)
  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

48 entries across 48 versions & 2 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-7.5.1 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-7.4.1 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-7.1.17 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-6.2.0 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-6.0.11 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-5.5.18 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-5.5.17 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-5.5.15 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-5.5.2 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-5.5.0 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-3.5.1.12 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-3.3.5 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb
rhodes-3.4.2 spec/framework_spec/app/spec/library/net/http/http/shared/started.rb