Sha256: 541b600d8dbf45d5b010f0b9f57f323b279196f098a4ba4ff768422ca98459b2

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

module Minitest
  # Error raised when multiple assertions are grouped together.
  class MultipleAssertionError < Minitest::Assertion
    attr_reader :location

    def initialize(msg = nil, location: nil, result_label: nil)
      super(msg)
      @location = location
      @result_label = result_label
    end

    def result_label
      @result_label || super
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aggregate_assertions-0.2.0 lib/aggregate_assertions/error.rb
aggregate_assertions-0.1.1 lib/aggregate_assertions/error.rb
aggregate_assertions-0.1.0 lib/aggregate_assertions/error.rb