Sha256: 13eedb1c0eed5d9a8471190ab5dff2c0c503fb79c02ee8b7fbd7d007b3d49a88

Contents?: true

Size: 616 Bytes

Versions: 30

Compression:

Stored size: 616 Bytes

Contents

require "spec_helper"

describe Bunny::Channel, "#open" do
  before :all do
    @connection = Bunny.new(:user => "bunny_gem", password:  "bunny_password", :vhost => "bunny_testbed")
    @connection.start
  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

30 entries across 30 versions & 1 rubygems

Version Path
bunny-2.19.0 spec/issues/issue83_spec.rb
bunny-2.18.0 spec/issues/issue83_spec.rb
bunny-2.17.0 spec/issues/issue83_spec.rb
bunny-2.16.1 spec/issues/issue83_spec.rb
bunny-2.15.0 spec/issues/issue83_spec.rb
bunny-2.14.4 spec/issues/issue83_spec.rb
bunny-2.14.3 spec/issues/issue83_spec.rb
bunny-2.14.2 spec/issues/issue83_spec.rb
bunny-2.14.1 spec/issues/issue83_spec.rb
bunny-2.13.0 spec/issues/issue83_spec.rb
bunny-2.12.1 spec/issues/issue83_spec.rb
bunny-2.12.0 spec/issues/issue83_spec.rb
bunny-2.12.0.rc1 spec/issues/issue83_spec.rb
bunny-2.11.0 spec/issues/issue83_spec.rb
bunny-2.11.0.pre1 spec/issues/issue83_spec.rb
bunny-2.10.0 spec/issues/issue83_spec.rb
bunny-2.9.2 spec/issues/issue83_spec.rb
bunny-2.9.1 spec/issues/issue83_spec.rb
bunny-2.6.7 spec/issues/issue83_spec.rb
bunny-2.7.4 spec/issues/issue83_spec.rb