# File lib/moqueue/matchers.rb, line 74 def failure_message_for_should "expected #{@queue.inspect} to have received header with routing key ``#{@expected_msg}''" end
# File lib/moqueue/matchers.rb, line 78 def failure_message_for_should_not "expected #{@queue.inspect} to not have received header with routing key ``#{@expected_msg}''" end
# File lib/moqueue/matchers.rb, line 63 def matches?(queue) if queue.respond_to?(:received_routing_key?) @queue = queue @queue.received_routing_key?(@expected_key) else raise NoMethodError, "Grrr. you can't use ``should have_received_routing_key'' on #{queue.inspect} " + "because it doesn't respond_to :received_routing_key?" end end
Generated with the Darkfish Rdoc Generator 2.