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-7.2.0.rc1 lib/active_support/error_reporter/test_helper.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.4/lib/active_support/error_reporter/test_helper.rb
activesupport-7.2.0.beta3 lib/active_support/error_reporter/test_helper.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.3.4/lib/active_support/error_reporter/test_helper.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/activesupport-7.1.3.4/lib/active_support/error_reporter/test_helper.rb
activesupport-7.2.0.beta2 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.3.4 lib/active_support/error_reporter/test_helper.rb
activesupport-7.2.0.beta1 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.3.2 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.3.1 lib/active_support/error_reporter/test_helper.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3/lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.3 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.2 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.1 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.0 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.0.rc2 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.0.rc1 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.0.beta1 lib/active_support/error_reporter/test_helper.rb