Class: Minitest::MultipleAssertionError
- Inherits:
-
Assertion
- Object
- Assertion
- Minitest::MultipleAssertionError
- Defined in:
- lib/aggregate_assertions/error.rb
Overview
Error raised when multiple assertions are grouped together.
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(msg = nil, location: nil, result_label: nil) ⇒ MultipleAssertionError
constructor
A new instance of MultipleAssertionError.
- #result_label ⇒ Object
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
#location ⇒ Object (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_label ⇒ Object
14 15 16 |
# File 'lib/aggregate_assertions/error.rb', line 14 def result_label @result_label || super end |