class Spectator::RunnableExample
Overview
Includes all the logic for running example hooks, the example code, and capturing a result.
Defined in:
spectator/runnable_example.crInstance Method Summary
-
#run_impl : Result
Runs the example, hooks, and captures the result and translates to a usable result.
Instance methods inherited from class Spectator::Example
[](index : Int) : Example
[],
description : String | Symbol
description,
example_count : Int
example_count,
finished? : Bool
finished?,
group : ExampleGroup
group,
run : Result
run,
run_impl
run_impl,
source : Source
source,
symbolic? : Bool
symbolic?,
to_json(json : JSON::Builder)
to_json,
to_s(io)
to_s
Constructor methods inherited from class Spectator::Example
new(group : Spectator::ExampleGroup, test_wrapper : Spectator::TestWrapper)
new
Instance methods inherited from class Spectator::ExampleComponent
[](index : Int) : Example
[],
description : Symbol | String
description,
example_count : Int
example_count,
finished? : Bool
finished?,
full_description
full_description,
source : Source
source,
symbolic? : Bool
symbolic?
Instance methods inherited from class Object
should(matcher)
should,
should_eventually(matcher)
should_eventually,
should_never(matcher)
should_never,
should_not(matcher)
should_not
Instance Method Detail
Runs the example, hooks, and captures the result and translates to a usable result.