Sha256: 28533b6dec336b9cb9ebbce447c81cabfc7555a19dbccec77609af39239f915f

Contents?: true

Size: 498 Bytes

Versions: 55

Compression:

Stored size: 498 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)
      x.should be_predeclared
    end

    ch.close
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
bunny-1.7.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.7.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.6.3 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.6.2 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.6.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.6.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.5.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.6.0.rc2 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.6.0.rc1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.6.0.pre1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.5.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.5.0.pre2 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.5.0.pre1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.4.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.4.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.3.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.3.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.2.2 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.2.1 spec/higher_level_api/integration/predeclared_exchanges_spec.rb
bunny-1.2.0 spec/higher_level_api/integration/predeclared_exchanges_spec.rb