Sha256: 435dc00f5e96e913e440b8b4873fcca89fa2e1d3a3a75611dc05232bdf13565d

Contents?: true

Size: 827 Bytes

Versions: 57

Compression:

Stored size: 827 Bytes

Contents

require "spec_helper"

describe Bunny::Session do
  let(:connection) do
    c = Bunny.new
    c.start
    c
  end

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

  it "proxies #queue to the pre-opened channel for backwards compatibility" do
    q = connection.queue("", :exclusive => true)
    q.name.should =~ /^amq.gen/
  end

  it "proxies #fanout to the pre-opened channel for backwards compatibility" do
    x = connection.fanout("amq.fanout")
    x.name.should == "amq.fanout"
  end

  it "proxies #topic to the pre-opened channel for backwards compatibility" do
    x = connection.topic("amq.topic")
    x.name.should == "amq.topic"
  end

  it "proxies #direct to the pre-opened channel for backwards compatibility" do
    x = connection.topic("amq.direct")
    x.name.should == "amq.direct"
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
bunny-1.4.1 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.4.0 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.3.1 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.3.0 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.2.2 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.2.1 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.2.0 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.9 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.8 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.7 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.6 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.5 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.4 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.3 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.2 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.1 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.0 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.1.0.rc1 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.0.7 spec/compatibility/queue_declare_with_default_channel_spec.rb
bunny-1.0.6 spec/compatibility/queue_declare_with_default_channel_spec.rb