Class: GovukMessageQueueConsumer::TestConsumer

Inherits:
Consumer
  • Object
show all
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

Methods inherited from Consumer

#initialize, #run

Constructor Details

This class inherits a constructor from GovukMessageQueueConsumer::Consumer

Instance Method Details

#delete_queueObject

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 publish_message(payload, options)
  exchange.publish(payload, options)
end