Spectator::ExceptionStub
Inherits Spectator::Stub / Spectator::StubModifiers / Reference / Object
Stub that raises an exception.
Constructors
new(method : Symbol, exception : Exception, constraint : AbstractArguments | Nil = nil, location : Location | Nil = nil)
Creates the stub.
Instance methods
with_constraint(constraint : AbstractArguments | Nil)
Returns a new stub with constrained arguments.