Ensure Stubbable can have stubs defined

Require implementation of _spectator_define_stub.
This commit is contained in:
Michael Miller 2022-04-10 11:11:36 -06:00
parent 477e412ac6
commit e8bac86017
No known key found for this signature in database
GPG key ID: 32B47AE8F388A1FF

View file

@ -22,6 +22,9 @@ module Spectator
# or nil if no stubs satisfy it.
abstract def _spectator_find_stub(call : MethodCall) : Stub?
# Defines a stub to change the behavior of a method.
abstract def _spectator_define_stub(stub : Stub) : Nil
# Method called when a stub isn't found.
#
# The received message is captured in *call*.