class Spectator::Spec


Contains examples to be tested and configuration for running them.

Defined in:



Instance Method Summary

Instance methods inherited from class Object

should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should(matcher, message = nil, *, _file = __FILE__, _line = __LINE__)
, should_eventually(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_eventually, should_never(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_never, should_not(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should_not(matcher : Spectator::Matchers::NilMatcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not(matcher, message = nil, *, _file = __FILE__, _line = __LINE__)

Constructor Detail

def : 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]