abstract class Spectator::FinishedResult
Overview
Abstract class for all results by examples
Direct Known Subclasses
Defined in:
spectator/finished_result.crConstructors
-
.new(example, elapsed : Time::Span, expectations : Spectator::Expectations::ExampleExpectations)
Creates a successful result.
Instance Method Summary
-
#elapsed : Time::Span
Length of time it took to run the example.
-
#expectations : Expectations::ExampleExpectations
The expectations that were run in the example.
Instance methods inherited from class Spectator::Result
call(interface)call(interface, &block : Result -> _) call, example : Example example, to_json(json : JSON::Builder) to_json
Constructor methods inherited from class Spectator::Result
new(example : Spectator::Example)
new
Instance methods inherited from class Object
should(matcher)
should,
should_eventually(matcher)
should_eventually,
should_never(matcher)
should_never,
should_not(matcher)
should_not
Constructor Detail
def self.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.
Instance Method Detail
def expectations : Expectations::ExampleExpectations
#
The expectations that were run in the example.