Parent

Files

Moqueue::Matchers::HasAcked

Public Class Methods

new(msg_expecting_ack) click to toggle source
    # File lib/moqueue/matchers.rb, line 33
33:       def initialize(msg_expecting_ack)
34:         @msg_expecting_ack = msg_expecting_ack
35:       end

Public Instance Methods

failure_message_for_should() click to toggle source
    # File lib/moqueue/matchers.rb, line 48
48:       def failure_message_for_should
49:         "expected #{@queue_or_exchange.inspect} to have received an ack for the message ``#{@msg_expecting_ack}''"
50:       end
failure_message_for_should_not() click to toggle source
    # File lib/moqueue/matchers.rb, line 52
52:       def failure_message_for_should_not
53:         "expected #{@queue_or_exchange.inspect} to not have received an ack for the message ``#{@msg_expecting_ack}''"
54:       end
matches?(queue_or_exchange) click to toggle source
    # File lib/moqueue/matchers.rb, line 37
37:       def matches?(queue_or_exchange)
38:         if queue_or_exchange.respond_to?(:received_ack_for_message?)
39:           @queue_or_exchange = queue_or_exchange
40:           @queue_or_exchange.received_ack_for_message?(@msg_expecting_ack)
41:         else
42:           raise NoMethodError,
43:           "Grrr. you can't use ``should have_received_ack_for'' on #{queue_or_exchange.inspect} " +
44:           "because it doesn't respond_to :received_ack_for_message?"
45:         end
46:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.