Spectator::Mocks::NilMethodStub
Inherits Spectator::Mocks::GenericMethodStub < Spectator::Mocks::MethodStub < Reference < Object
Constructors
new(name, source, args : Arguments | Nil = nil)
SourceInstance methods
and_call_original
Sourceand_raise(exception_type : Exception.class)
Sourceand_raise(exception : Exception)
Sourceand_raise(message : String)
Sourceand_raise(exception_type : Exception.class, *args) forall T
Sourceand_return(value)
Sourceand_return
Sourceand_return(*values)
Sourcecall(_args : GenericArguments(T, NT), &_original : -> RT) forall T, NT, RT
Sourcewith(*args : *T, **opts : **NT) forall T, NT
Source