class SpectatorTestContext
Overview
Class used as the base for all specs using the DSL.
It adds methods and macros necessary to use the DSL from the spec.
This type is intentionally outside the Spectator
module.
The reason for this is to prevent name collision when using the DSL to define a spec.
Included Modules
Defined in:
spectator/test_context.cr
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 ,
no_args
no_args
aggregate_failures(label = nil , &)
aggregate_failures ,
fail(message = "Example failed" , *, _file = __FILE__, _line = __LINE__)
fail ,
pending(message = PendingResult :: DEFAULT_REASON , *, _file = __FILE__, _line = __LINE__)
pending ,
skip(message = PendingResult :: DEFAULT_REASON , *, _file = __FILE__, _line = __LINE__)
skip
Instance methods inherited from class SpectatorContext
inspect(io)
inspect ,
to_s(io)
to_s
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