Sha256: a50a72cab8546b736c04a25f555f96854dba624b6a5ff590a34bc258ca954686

Contents?: true

Size: 502 Bytes

Versions: 17

Compression:

Stored size: 502 Bytes

Contents

require "spec_helper"

describe "amq.* exchanges" do
  let(:connection) do
    c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed")
    c.start
    c
  end

  after :each do
    connection.close if connection.open?
  end

  it "are predeclared" do
    ch = connection.create_channel

    ["amq.fanout", "amq.direct", "amq.topic", "amq.match", "amq.headers"].each do |e|
      x = ch.exchange(e)
      expect(x).to be_predeclared
    end

    ch.close
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bunny-2.6.3 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.6.2 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.6.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.6.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.5.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.5.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.4.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.3.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.3.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.2.2 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.2.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.2.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.1.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.0.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.0.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.0.0.rc2 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-2.0.0.rc1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb