Module Moqueue::Matchers
In: lib/moqueue/matchers.rb

Methods

Classes and Modules

Class Moqueue::Matchers::HasAcked
Class Moqueue::Matchers::HasExactRoutingKey
Class Moqueue::Matchers::HasReceived

Public Instance methods

have_ack_for(expected_msg)
have_exact_routing_key(expected_key)
have_received(expected_msg)

Customer matcher for verifying a message was received with a specific routing key (matches exactly, no wildcards)

 queue.bind(exchange).subscribe {|msg| msg}
 exchange.publish msg, :key => 'foo.bar.baz'
 queue.should have_received_routing_key('foo.bar.baz')

[Validate]