class Spectator::RootExampleGroup

Overview

Top-most group of examples and sub-groups. The root has no parent.

Defined in:

spectator/root_example_group.cr

Instance Method Summary

Instance methods inherited from class Spectator::ExampleGroup

[](index : Int) : Example [], children : Array(ExampleComponent) children, children=(children : Array(ExampleComponent)) children=, children? : Array(ExampleComponent) | Nil children?, context : Spectator::TestContext context, double(id, sample_values) double, each(&)
each : Iterator(ExampleComponent)
each
, example_count : Int example_count, finished? : Bool finished?

Constructor methods inherited from class Spectator::ExampleGroup

new(context : TestContext) 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

def description : Symbol | String #

Dummy value - this should never be used.


[View source]
def source : Source #

[View source]
def symbolic? : Bool #

Indicates that the group is symbolic.


[View source]
def to_s(io) #

Does nothing. This prevents the root group from showing up in output.


[View source]