# File lib/moqueue/matchers.rb, line 88 def have_received_ack_for(expected_msg) HasAcked.new(expected_msg) end
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')
# File lib/moqueue/matchers.rb, line 99 def have_received_exact_routing_key(expected_key) HasExactRoutingKey.new(expected_key) end
# File lib/moqueue/matchers.rb, line 84 def have_received_message(expected_msg) HasReceived.new(expected_msg) end
Generated with the Darkfish Rdoc Generator 2.