Sha256: bcccf7bb5fc9eba91a6fd9e91c37a7fbfabaaf4427ebbd5b44d73fd4dec35ca3

Contents?: true

Size: 618 Bytes

Versions: 17

Compression:

Stored size: 618 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

17 entries across 17 versions & 1 rubygems

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