class

Spectator::FinishedResult

Inherits Spectator::Result < Reference < Object

Abstract class for all results by examples

Constructors

new(example, elapsed : Time::Span, expectations : Spectator::Expectations::ExampleExpectations)

Creates a successful 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.

Source

Instance methods

elapsed

Length of time it took to run the example.

Source
expectations

The expectations that were run in the example.

Source