Files

Moqueue::Matchers

Public Instance Methods

have_ack_for(expected_msg) click to toggle source
have_exact_routing_key(expected_key) click to toggle source
have_received(expected_msg) click to toggle source
have_received_ack_for(expected_msg) click to toggle source
# File lib/moqueue/matchers.rb, line 88
def have_received_ack_for(expected_msg)
  HasAcked.new(expected_msg)
end
Also aliased as: have_ack_for
have_received_exact_routing_key(expected_key) click to toggle source

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
Also aliased as: have_exact_routing_key
have_received_message(expected_msg) click to toggle source
# File lib/moqueue/matchers.rb, line 84
def have_received_message(expected_msg)
  HasReceived.new(expected_msg)
end
Also aliased as: have_received

[Validate]

Generated with the Darkfish Rdoc Generator 2.