Sha256: bbea8256d64f31b16ec45da0dae6d61a94ae11c801306098ed5ebde244476b8f

Contents?: true

Size: 326 Bytes

Versions: 38

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

module ActiveSupport::ErrorReporter::TestHelper # :nodoc:
  class ErrorSubscriber
    attr_reader :events

    def initialize
      @events = []
    end

    def report(error, handled:, severity:, source:, context:)
      @events << [error, handled, severity, source, context]
    end
  end
end

Version data entries

38 entries across 38 versions & 6 rubygems

Version Path
activesupport-8.0.0 lib/active_support/error_reporter/test_helper.rb
activesupport-7.2.2 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.5 lib/active_support/error_reporter/test_helper.rb
activesupport-8.0.0.rc2 lib/active_support/error_reporter/test_helper.rb
activesupport-7.2.1.2 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.4.2 lib/active_support/error_reporter/test_helper.rb
activesupport-8.0.0.rc1 lib/active_support/error_reporter/test_helper.rb
activesupport-7.2.1.1 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.4.1 lib/active_support/error_reporter/test_helper.rb
activesupport-8.0.0.beta1 lib/active_support/error_reporter/test_helper.rb
omg-activesupport-8.0.0.alpha9 lib/active_support/error_reporter/test_helper.rb
omg-activesupport-8.0.0.alpha8 lib/active_support/error_reporter/test_helper.rb
omg-activesupport-8.0.0.alpha7 lib/active_support/error_reporter/test_helper.rb
omg-activesupport-8.0.0.alpha4 lib/active_support/error_reporter/test_helper.rb
omg-activesupport-8.0.0.alpha3 lib/active_support/error_reporter/test_helper.rb
omg-activesupport-8.0.0.alpha2 lib/active_support/error_reporter/test_helper.rb
omg-activesupport-8.0.0.alpha1 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.4 lib/active_support/error_reporter/test_helper.rb
activesupport-7.2.1 lib/active_support/error_reporter/test_helper.rb
activesupport-7.2.0 lib/active_support/error_reporter/test_helper.rb