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