Spectator::FailResult
Inherits Spectator::Result / Reference / Object
Outcome that indicates an example failed. This typically means an assertion did not pass.
Constructors
Creates a failure result. The elapsed argument is the length of time it took to run the example. The error is the exception raised that caused the failure.
Instance methods
Error that occurred while running the example. This describes the primary reason for the failure.
Attempts to retrieve the location where the example failed.
This only works if the location of the failed expectation was reported.
If available, returns a Location, otherwise raises NilAssertionError.
Attempts to retrieve the location where the example failed.
This only works if the location of the failed expectation was reported.
If available, returns a Location, otherwise nil.