Sha256: 51109b56e68121fa1c652d082d2ef9eb9b2025ec0652407348f93c915857c6df
Contents?: true
Size: 587 Bytes
Versions: 23
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true module ExceptionHelpers def raise_exception_with_nil_message raise exception_with_nil_message end def exception_with_nil_message exception_with_nil_message = RuntimeError.new(nil) allow(exception_with_nil_message).to receive(:message).and_return(nil) exception_with_nil_message end attr_reader :sent_notifications def capture_notifications @sent_notifications = [] allow(ExceptionHandling).to receive(:send_exception_to_honeybadger).with(any_args) { |exception_info| @sent_notifications << exception_info } end end
Version data entries
23 entries across 23 versions & 1 rubygems