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

Version Path
exception_handling-2.7.0.pre.1 test/helpers/exception_helpers.rb
exception_handling-2.6.0 test/helpers/exception_helpers.rb
exception_handling-2.5.1.pre.1 test/helpers/exception_helpers.rb
exception_handling-2.5.0 test/helpers/exception_helpers.rb
exception_handling-2.5.0.pre.2 test/helpers/exception_helpers.rb
exception_handling-2.5.0.pre.1 test/helpers/exception_helpers.rb
exception_handling-2.4.4.pre.1 test/helpers/exception_helpers.rb
exception_handling-2.4.4 test/helpers/exception_helpers.rb
exception_handling-2.4.3 test/helpers/exception_helpers.rb
exception_handling-2.4.3.pre.2 test/helpers/exception_helpers.rb
exception_handling-2.4.3.pre.1 test/helpers/exception_helpers.rb
exception_handling-2.4.2 test/helpers/exception_helpers.rb
exception_handling-2.4.1 test/helpers/exception_helpers.rb
exception_handling-2.4.0 test/helpers/exception_helpers.rb
exception_handling-2.4.0.pre.2 test/helpers/exception_helpers.rb
exception_handling-2.4.0.pre.1 test/helpers/exception_helpers.rb
exception_handling-3.0.pre.1 test/helpers/exception_helpers.rb
exception_handling-2.3.0 test/helpers/exception_helpers.rb
exception_handling-2.3.0.pre.1 test/helpers/exception_helpers.rb