class SpectatorTestContext


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:


Instance methods inherited from module Spectator::DSL::Mocks

allow(stubbable : Stubbable | StubbedType)
, any_args any_args, no_args no_args

Instance methods inherited from module Spectator::DSL::Expectations

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