spec/integration/bunny/amqp_integration_spec.rb in message-driver-0.5.3 vs spec/integration/bunny/amqp_integration_spec.rb in message-driver-0.6.0

- old
+ new

@@ -76,6 +76,26 @@ msg = destination.pop_message expect(msg).to_not be_nil expect(msg.body).to eq('Test Message 2') end end + + context 'when nothing is done during a transaction' do + it 'does not raise an error' do + expect do + MessageDriver::Client.with_message_transaction do + #do nothing + end + end.not_to raise_error + end + + context 'with a wait and confirm transaction' do + it 'does not raise an error' do + expect do + MessageDriver::Client.with_message_transaction(type: :confirm_and_wait) do + #do nothing + end + end.not_to raise_error + end + end + end end