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

Version Path
exception_handling-3.1.1 spec/helpers/exception_helpers.rb
exception_handling-3.1.1.pre.tstarck.1 spec/helpers/exception_helpers.rb
exception_handling-3.1.0 spec/helpers/exception_helpers.rb
exception_handling-3.1.0.pre.3 spec/helpers/exception_helpers.rb
exception_handling-3.0.1 spec/helpers/exception_helpers.rb
exception_handling-3.1.0.pre.2 spec/helpers/exception_helpers.rb
exception_handling-3.1.0.pre.tstarck.2 spec/helpers/exception_helpers.rb
exception_handling-3.1.0.pre.tstarck.1 spec/helpers/exception_helpers.rb
exception_handling-3.0.0 spec/helpers/exception_helpers.rb
exception_handling-3.0.0.pre.2 spec/helpers/exception_helpers.rb
exception_handling-2.17.0.pre.tstarck.1 spec/helpers/exception_helpers.rb
exception_handling-2.16.0 spec/helpers/exception_helpers.rb
exception_handling-2.15.0 spec/helpers/exception_helpers.rb
exception_handling-2.14.0 spec/helpers/exception_helpers.rb
exception_handling-2.14.0.pre.gk.1 spec/helpers/exception_helpers.rb
exception_handling-2.14.0.pre.gk.0 spec/helpers/exception_helpers.rb
exception_handling-2.13.0 spec/helpers/exception_helpers.rb
exception_handling-2.13.0.pre.dc.0 spec/helpers/exception_helpers.rb
exception_handling-2.12.0 spec/helpers/exception_helpers.rb
exception_handling-2.12.0.gfaza.1 spec/helpers/exception_helpers.rb