Class: Minitest::MultipleAssertionError

Inherits:
Assertion
  • Object
show all
Defined in:
lib/aggregate_assertions/error.rb

Overview

Error raised when multiple assertions are grouped together.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, location: nil, result_label: nil) ⇒ MultipleAssertionError

Returns a new instance of MultipleAssertionError.



8
9
10
11
12
# File 'lib/aggregate_assertions/error.rb', line 8

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



6
7
8
# File 'lib/aggregate_assertions/error.rb', line 6

def location
  @location
end

Instance Method Details

#result_labelObject



14
15
16
# File 'lib/aggregate_assertions/error.rb', line 14

def result_label
  @result_label || super
end