module Spectator::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.