Sha256: 3693274a6085a98aff058ba794c12250ea19d4e4f4e4bc76a30694106bdfdf7f

Contents?: true

Size: 716 Bytes

Versions: 5

Compression:

Stored size: 716 Bytes

Contents

require_relative 'spec_helper'

describe Bunny do
  before do
    @client = Bunny::Client.new
  end

  describe 'on .reset_exchanges' do
    before do
      @client.exchange(:test_exchange)
    end

    it 'resets them back to an empty hash' do
      Bunny.reset_exchanges
      @client.exchanges.must_be_empty
    end
  end

  describe 'on .reset!' do
    before do
      @client.exchange(:test_exchange)
    end

    it 'resets them back to an empty hash' do
      StuffedBunny.reset!
      @client.exchanges.must_be_empty
    end
  end

  describe 'on .queue' do
    it 'returns a new queue with default options' do
      @client.queue( "queue", passive: true ).must_be_instance_of Bunny::Queue
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stuffed_bunny-1.0.3 spec/bunny_spec.rb
stuffed_bunny-1.0.2 spec/bunny_spec.rb
stuffed_bunny-1.0.1 spec/bunny_spec.rb
stuffed_bunny-1.0.0 spec/bunny_spec.rb
stuffed_bunny-0.0.4 spec/bunny_spec.rb