Class: Ears::Testing::PublisherMock

Inherits:
Object
  • Object
show all
Includes:
RSpec::Mocks::ExampleMethods
Defined in:
lib/ears/testing/publisher_mock.rb

Instance Method Summary collapse

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, message_capture)
  @exchange_names = Array(exchange_names)
  @message_capture = message_capture
  @mock_exchanges = {}
end

Instance Method Details

#setup_mocksObject



17
18
19
20
# File 'lib/ears/testing/publisher_mock.rb', line 17

def setup_mocks
  setup_connection
  setup_channel_pool
end