class Honeybadger::Backend::Test

Public Class Methods

check_ins() click to toggle source

@api public The check in list.

@example Test.check_ins # => [“foobar”, “danny”, …]

@return [Array<Object>] List of check ins.

# File lib/honeybadger/backend/test.rb, line 23
def self.check_ins
  @check_ins ||= []
end
notifications() click to toggle source

The notification list.

@example Test.notifications[:notices] # => [Notice, Notice, …]

@return [Hash] Notifications hash.

# File lib/honeybadger/backend/test.rb, line 12
def self.notifications
  @notifications ||= Hash.new {|h,k| h[k] = [] }
end

Public Instance Methods

check_in(id) click to toggle source
# File lib/honeybadger/backend/test.rb, line 40
def check_in(id)
  check_ins << id
end
check_ins() click to toggle source
# File lib/honeybadger/backend/test.rb, line 31
def check_ins
  self.class.check_ins
end
notifications() click to toggle source
# File lib/honeybadger/backend/test.rb, line 27
def notifications
  self.class.notifications
end
notify(feature, payload) click to toggle source
Calls superclass method Honeybadger::Backend::Null#notify
# File lib/honeybadger/backend/test.rb, line 35
def notify(feature, payload)
  notifications[feature] << payload
  super
end