lib/honeybadger/cli/test.rb in honeybadger-5.14.1 vs lib/honeybadger/cli/test.rb in honeybadger-5.14.2

- old
+ new

@@ -22,12 +22,22 @@ def self.callings @callings ||= Hash.new {|h,k| h[k] = [] } end + def self.events + @events ||= [] + end + def notify(feature, payload) response = @backend.notify(feature, payload) self.class.callings[feature] << [payload, response] + response + end + + def event(payload) + response = @backend.event(payload) + self.class.events << [payload, response] response end end def initialize(options)