Class: Ears::Testing::PublisherMock
- Inherits:
-
Object
- Object
- Ears::Testing::PublisherMock
- Includes:
- RSpec::Mocks::ExampleMethods
- Defined in:
- lib/ears/testing/publisher_mock.rb
Instance Method Summary collapse
-
#initialize(exchange_names, message_capture) ⇒ PublisherMock
constructor
A new instance of PublisherMock.
- #setup_mocks ⇒ Object
Constructor Details
#initialize(exchange_names, message_capture) ⇒ PublisherMock
Returns a new instance of PublisherMock.
11 12 13 14 15 |
# File 'lib/ears/testing/publisher_mock.rb', line 11 def initialize(exchange_names, ) @exchange_names = Array(exchange_names) @message_capture = @mock_exchanges = {} end |
Instance Method Details
#setup_mocks ⇒ Object
17 18 19 20 |
# File 'lib/ears/testing/publisher_mock.rb', line 17 def setup_mocks setup_connection setup_channel_pool end |