Class: AssertFailure
- Inherits:
-
AssertResult
- Object
- AssertResult
- AssertFailure
- Defined in:
- lib/test_failure.rb
Overview
Assert that has failed with a message explaining why the assertion failed
Instance Attribute Summary
Attributes inherited from AssertResult
Instance Method Summary collapse
-
#initialize(message) ⇒ AssertFailure
constructor
A new instance of AssertFailure.
- #report(spacer_count) ⇒ Object
Methods included from Result
#failures, #neutrals, #successes
Constructor Details
#initialize(message) ⇒ AssertFailure
45 46 47 |
# File 'lib/test_failure.rb', line 45 def initialize() super(, nil) end |
Instance Method Details
#report(spacer_count) ⇒ Object
49 50 51 52 53 |
# File 'lib/test_failure.rb', line 49 def report(spacer_count) super Printer.fail(@spacer + ) end |