Sha256: 38457f7783555f2835830b9e281600f3ea8b3ad24caa9cc65bdb4032a320c67a

Contents?: true

Size: 461 Bytes

Versions: 10

Compression:

Stored size: 461 Bytes

Contents

require "spec_helper"

describe Bunny::Transport, ".reachable?" do
  it "returns true for google.com, 80" do
    Bunny::Transport.reacheable?("google.com", 80, 1).should be_true
  end

  it "returns true for google.com, 8088" do
    Bunny::Transport.reacheable?("google.com", 8088, 1).should be_false
  end

  it "returns false for google1237982792837.com, 8277" do
    Bunny::Transport.reacheable?("google1237982792837.com", 8277, 1).should be_false
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bunny-0.9.0.rc2 spec/unit/transport_spec.rb
bunny-0.9.0.rc1 spec/unit/transport_spec.rb
bunny-0.9.0.pre13 spec/unit/transport_spec.rb
bunny-0.9.0.pre12 spec/unit/transport_spec.rb
bunny-0.9.0.pre11 spec/unit/transport_spec.rb
bunny-0.9.0.pre10 spec/unit/transport_spec.rb
bunny-0.9.0.pre9 spec/unit/transport_spec.rb
bunny-0.9.0.pre8 spec/unit/transport_spec.rb
bunny-0.9.0.pre7 spec/unit/transport_spec.rb
bunny-0.9.0.pre6 spec/unit/transport_spec.rb