class Spectator::Spec

Overview

Contains examples to be tested and configuration for running them.

Defined in:

spectator/spec.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Constructor Detail

def self.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.


[View source]

Instance Method Detail

def run : Bool #

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.


[View source]