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
88:     def have_received_ack_for(expected_msg)
89:       HasAcked.new(expected_msg)
90:     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
 99:     def have_received_exact_routing_key(expected_key)
100:       HasExactRoutingKey.new(expected_key)
101:     end
Also aliased as: have_exact_routing_key
have_received_message(expected_msg) click to toggle source
    # File lib/moqueue/matchers.rb, line 84
84:     def have_received_message(expected_msg)
85:       HasReceived.new(expected_msg)
86:     end
Also aliased as: have_received

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.