class

Spectator::Spec

Inherits Reference / Object

Contains examples to be tested and configuration for running them.

Constructors

new(root : ExampleGroup, config : Config)

Creates the spec. The root is the top-most example group. All examples in this group and groups nested under are candidates for execution. The config provides settings controlling how tests will be executed.

Source

Instance methods

run

Runs all selected examples and returns the results. True will be returned if the spec ran successfully, or false if there was at least one failure.

Source