Sha256: 810b3fc5100b7e3138f13cb077dd9100c9f3c1203df44bf8b681a5b72f02b223

Contents?: true

Size: 267 Bytes

Versions: 4

Compression:

Stored size: 267 Bytes

Contents

class LoggingReceiver
  def self.reset!; @messages_received = []; end
  def self.messages_received; @messages_received ||= []; end

  reset!

  def self.handle!(delivery_info,properties,payload)
    messages_received << [ delivery_info,properties,payload ]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pwwka-0.10.0 spec/integration/support/logging_receiver.rb
pwwka-0.10.0.RC spec/integration/support/logging_receiver.rb
pwwka-0.9.0 spec/integration/support/logging_receiver.rb
pwwka-0.9.0.RC1 spec/integration/support/logging_receiver.rb