Sha256: bbea8256d64f31b16ec45da0dae6d61a94ae11c801306098ed5ebde244476b8f

Contents?: true

Size: 326 Bytes

Versions: 45

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

45 entries across 45 versions & 8 rubygems

Version Path
activesupport-8.0.2 lib/active_support/error_reporter/test_helper.rb
tailscale_middleware-0.0.3 vendor/cache/ruby/3.4.0/gems/activesupport-8.0.1/lib/active_support/error_reporter/test_helper.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.4/lib/active_support/error_reporter/test_helper.rb
activesupport-8.0.1 lib/active_support/error_reporter/test_helper.rb
activesupport-8.0.0.1 lib/active_support/error_reporter/test_helper.rb
activesupport-7.2.2.1 lib/active_support/error_reporter/test_helper.rb
activesupport-7.1.5.1 lib/active_support/error_reporter/test_helper.rb
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