Module: Vx::Common::AMQP::Testing

Extended by:
Testing
Included in:
Testing
Defined in:
lib/vx/common/amqp/testing.rb

Constant Summary collapse

@@messages =
Hash.new { |h,k| h[k] = [] }
@@messages_and_options =
Hash.new { |h,k| h[k] = [] }

Instance Method Summary collapse

Instance Method Details

#clearObject



21
22
23
24
# File 'lib/vx/common/amqp/testing.rb', line 21

def clear
  messages.clear
  messages_and_options.clear
end

#messagesObject



13
14
15
# File 'lib/vx/common/amqp/testing.rb', line 13

def messages
  @@messages
end

#messages_and_optionsObject



17
18
19
# File 'lib/vx/common/amqp/testing.rb', line 17

def messages_and_options
  @@messages_and_options
end