Sha256: a16e6bf86593c5ca6b12f717e2a72d413038889584c93b75413b741f66b808b5

Contents?: true

Size: 353 Bytes

Versions: 64

Compression:

Stored size: 353 Bytes

Contents

require "spec_helper"

describe Bunny::Session do
  context "with unreachable host" do
    it "raises Bunny::TCPConnectionFailed" do
      begin
        conn = Bunny.new(:hostname => "192.192.192.192")
        conn.start

        fail "expected 192.192.192.192 to be unreachable"
      rescue Bunny::TCPConnectionFailed => e
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
bunny-2.14.4 spec/issues/issue202_spec.rb
bunny-2.14.3 spec/issues/issue202_spec.rb
bunny-2.14.2 spec/issues/issue202_spec.rb
bunny-2.14.1 spec/issues/issue202_spec.rb
bunny-2.13.0 spec/issues/issue202_spec.rb
bunny-2.12.1 spec/issues/issue202_spec.rb
bunny-2.12.0 spec/issues/issue202_spec.rb
bunny-2.12.0.rc1 spec/issues/issue202_spec.rb
bunny-2.11.0 spec/issues/issue202_spec.rb
bunny-2.11.0.pre1 spec/issues/issue202_spec.rb
bunny-2.10.0 spec/issues/issue202_spec.rb
bunny-2.9.2 spec/issues/issue202_spec.rb
bunny-2.9.1 spec/issues/issue202_spec.rb
bunny-2.6.7 spec/issues/issue202_spec.rb
bunny-2.7.4 spec/issues/issue202_spec.rb
bunny-2.8.1 spec/issues/issue202_spec.rb
bunny-2.9.0 spec/issues/issue202_spec.rb
bunny-2.7.3 spec/issues/issue202_spec.rb
bunny-2.8.0 spec/issues/issue202_spec.rb
bunny-2.7.2 spec/issues/issue202_spec.rb