Sha256: dab915ec9f4695136776a72cd3013ff94be4f7dc3ad81efb358736ba267459fe
Contents?: true
Size: 546 Bytes
Versions: 19
Compression:
Stored size: 546 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) stub(exception_with_nil_message).message { nil } exception_with_nil_message end attr_reader :sent_notifications def capture_notifications @sent_notifications = [] stub(ExceptionHandling).send_exception_to_honeybadger(anything) { |exception_info| @sent_notifications << exception_info } end end
Version data entries
19 entries across 19 versions & 1 rubygems