class

Spectator::FailedResult

Inherits Spectator::FinishedResult < Spectator::Result < Reference < Object

Outcome that indicates running an example was a failure.

Constructors

new(example, elapsed, expectations, error : Exception)

Creates a failed result. The example should refer to the example that was run and that this result is for. The elapsed argument is the length of time it took to run the example. The expectations references the expectations that were checked in the example. The error is the exception that was raised to cause the failure.

Source

Instance methods

call(interface)

Calls the failure method on interface.

Source
call(interface, &)

Calls the failure method on interface and passes the yielded value.

Source
error

Error that occurred while running the example.

Source
to_s(io)

One-word descriptor of the result.

Source