module Mocks::Stubbable::Automatic
Overview
When included, automatically redefines all methods to be stubbable. Any newly defined instance methods will have stub functionality added to them.
NOTE Class methods defined after this module is included will not have stub functionality added.
As a workaround, use the stub
keyword before the class method definition.
Included Modules
Direct including types
Defined in:
mocks/stubbable/automatic.crClass methods inherited from module Mocks::Stubbable
unexpected_method_call(method_name : Symbol, abstract_call : Bool, type : NoReturn.class) : NoReturnunexpected_method_call(method_name : Symbol, abstract_call : Bool, type : T.class) : T forall T unexpected_method_call