Module: RosettaQueue::Matchers

Defined in:
lib/rosetta_queue/spec_helpers/publishing_matchers.rb

Defined Under Namespace

Classes: PublishAMessageTo, PublishMessage, PublishMessageMatcher, PublishMessageWith

Instance Method Summary collapse

Instance Method Details

#publish_a_message_to(expected_queue) ⇒ Object Also known as: publish_message_to



42
43
44
# File 'lib/rosetta_queue/spec_helpers/publishing_matchers.rb', line 42

def publish_a_message_to(expected_queue)
  PublishAMessageTo.new(expected_queue)
end

#publish_message(exact_expected_message, options = {}) ⇒ Object



138
139
140
# File 'lib/rosetta_queue/spec_helpers/publishing_matchers.rb', line 138

def publish_message(exact_expected_message, options={})
  PublishMessage.new(exact_expected_message, options)
end

#publish_message_with(message_subset, options = {}) ⇒ Object



103
104
105
# File 'lib/rosetta_queue/spec_helpers/publishing_matchers.rb', line 103

def publish_message_with(message_subset, options={})
  PublishMessageWith.new(message_subset, options)
end

#publish_messages_to(expected_queue, options) ⇒ Object



48
49
50
# File 'lib/rosetta_queue/spec_helpers/publishing_matchers.rb', line 48

def publish_messages_to(expected_queue, options)
  PublishAMessageTo.new(expected_queue, options)
end