class Spectator::DSL::RootExampleGroupBuilder

Overview

Top-level example group builder. There should only be one instance of this class, and it should be at the top of the spec "tree".

Defined in:

spectator/dsl/root_example_group_builder.cr

Instance Method Summary

Instance methods inherited from class Spectator::DSL::ExampleGroupBuilder

add_after_all_hook(block : -> ) : Nil add_after_all_hook, add_after_each_hook(block : -> ) : Nil add_after_each_hook, add_around_each_hook(block : Proc(Nil) -> ) : Nil add_around_each_hook, add_before_all_hook(block : -> ) : Nil add_before_all_hook, add_before_each_hook(block : -> ) : Nil add_before_each_hook, add_child(child : Child) add_child, add_post_condition(block : -> ) : Nil add_post_condition, add_pre_condition(block : -> ) : Nil add_pre_condition

Instance methods inherited from class Object

should(matcher : Spectator::Matchers::Matcher) should, should_not(matcher : Spectator::Matchers::Matcher) should_not

Instance Method Detail

def build(sample_values : Internals::SampleValues) : RootExampleGroup #

Creates a RootExampleGroup which can have instances of Example and ExampleGroup nested in it. The sample_values will be given to all of the examples (and groups) nested in this group.


[View source]