Sha256: f2dd5e471f22e866435c18a34ec85c4ea3d8dd5f991d6cb7089e9a3daaebaf1a

Contents?: true

Size: 606 Bytes

Versions: 79

Compression:

Stored size: 606 Bytes

Contents

require "spec_helper"

describe Bunny::Channel, "#open" do
  let(:connection) do
    c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed")
    c.start
    c
  end

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


  it "properly resets channel exception state" do
    ch = connection.create_channel

    begin
      ch.queue("bunny.tests.does.not.exist", :passive => true)
    rescue Bunny::NotFound
      # expected
    end

    # reopen the channel
    ch.open

    # should not raise
    q = ch.queue("bunny.tests.my.queue")
    q.delete
  end
end

Version data entries

79 entries across 79 versions & 1 rubygems

Version Path
bunny-1.1.9 spec/issues/issue83_spec.rb
bunny-1.1.8 spec/issues/issue83_spec.rb
bunny-1.1.7 spec/issues/issue83_spec.rb
bunny-1.1.6 spec/issues/issue83_spec.rb
bunny-1.1.5 spec/issues/issue83_spec.rb
bunny-1.1.4 spec/issues/issue83_spec.rb
bunny-1.1.3 spec/issues/issue83_spec.rb
bunny-1.1.2 spec/issues/issue83_spec.rb
bunny-1.1.1 spec/issues/issue83_spec.rb
bunny-1.1.0 spec/issues/issue83_spec.rb
bunny-1.1.0.rc1 spec/issues/issue83_spec.rb
bunny-1.0.7 spec/issues/issue83_spec.rb
bunny-1.0.6 spec/issues/issue83_spec.rb
bunny-1.0.5 spec/issues/issue83_spec.rb
bunny-1.1.0.pre2 spec/issues/issue83_spec.rb
bunny-1.1.0.pre1 spec/issues/issue83_spec.rb
bunny-1.0.4 spec/issues/issue83_spec.rb
bunny-1.0.3 spec/issues/issue83_spec.rb
bunny-1.0.2 spec/issues/issue83_spec.rb
bunny-1.0.1 spec/issues/issue83_spec.rb