class SpectatorTest

Overview

Root-level class that all tests inherit from and are contained in. This class is intentionally outside of the scope of Spectator, so that the namespace isn't leaked into tests unexpectedly.

Included Modules

Defined in:

spectator_test.cr

Constructors

Instance methods inherited from module Spectator::DSL

allow(thing) allow, allow_any_instance_of(type : T.class) forall T allow_any_instance_of, anonymous_double(name = "Anonymous", **stubs) anonymous_double, anonymous_null_double(name = "Anonymous", **stubs) anonymous_null_double, fail(reason : String)
fail
fail

Instance methods inherited from class Object

should(matcher) should, should_eventually(matcher) should_eventually, should_never(matcher) should_never, should_not(matcher) should_not

Constructor Detail

def self.new(spectator_test_values : Spectator::TestValues) #

[View source]