class SpectatorTest
- SpectatorTest
- Reference
- Object
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.crConstructors
Instance Method Summary
- #_spectator_implicit_subject
-
#inspect(io)
Prevent leaking internal values since their types may differ.
- #subject
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
Instance Method Detail
def inspect(io)
#
Prevent leaking internal values since their types may differ. Workaround for: https://gitlab.com/arctic-fox/spectator/-/issues/53