Spectator::NullStub
Inherits Spectator::TypedStub / Spectator::Stub / Spectator::StubModifiers / Reference / Object
Stub that does nothing and returns nil.
Constructors
new(method : Symbol, constraint : AbstractArguments | Nil = nil, location : Location | Nil = nil)
Creates the base of the stub.
Instance methods
with_constraint(constraint : AbstractArguments | Nil)
Returns a new stub with constrained arguments.