class Spectator::ErroredResult
- Spectator::ErroredResult
- Spectator::FailedResult
- Spectator::FinishedResult
- Spectator::Result
- Reference
- Object
Overview
Outcome that indicates running an example generated an error. This type of result occurs when an exception was raised. This is different from a "failed" result in that the error was not from a failed expectation.
Defined in:
spectator/errored_result.crInstance Method Summary
-
#call(interface)
Calls the
error
method on interface. -
#call(interface, &)
Calls the
error
method on interface and passes the yielded value. -
#to_s(io)
One-word descriptor of the result.
Instance methods inherited from class Spectator::FailedResult
call(interface)call(interface, &) call, error : Exception error, to_s(io) to_s
Constructor methods inherited from class Spectator::FailedResult
new(example, elapsed, expectations, error : Exception)
new
Instance methods inherited from class Spectator::FinishedResult
elapsed : Time::Span
elapsed,
expectations : Expectations::ExampleExpectations
expectations
Constructor methods inherited from class Spectator::FinishedResult
new(example, elapsed : Time::Span, expectations : Spectator::Expectations::ExampleExpectations)
new
Instance methods inherited from class Spectator::Result
call(interface)call(interface, &block : Result -> _) call, example : Example example, to_json(json : JSON::Builder) to_json