Sha256: 3ce0c2649b70a39e9f517ffde3db674033a268587bf717e581631d1f00cbc001

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

require "spec_helper"

# mystically fails on Rubinius on CI. MK.
if RUBY_ENGINE != "rbx"
  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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bunny-0.9.1 spec/unit/transport_spec.rb
bunny-0.9.0 spec/unit/transport_spec.rb