Class: GovukMessageQueueConsumer::TestConsumer
- Defined in:
- lib/govuk_message_queue_consumer/test_helpers/test_consumer.rb
Constant Summary
Constants inherited from Consumer
Consumer::NUMBER_OF_MESSAGES_TO_PREFETCH
Instance Method Summary collapse
-
#delete_queue ⇒ Object
call after integration tests finish.
- #publish_message(payload, options) ⇒ Object
Methods inherited from Consumer
Constructor Details
This class inherits a constructor from GovukMessageQueueConsumer::Consumer
Instance Method Details
#delete_queue ⇒ Object
call after integration tests finish
8 9 10 |
# File 'lib/govuk_message_queue_consumer/test_helpers/test_consumer.rb', line 8 def delete_queue queue.delete end |
#publish_message(payload, options) ⇒ Object
3 4 5 |
# File 'lib/govuk_message_queue_consumer/test_helpers/test_consumer.rb', line 3 def (payload, ) exchange.publish(payload, ) end |