The Stubber is a singleton that keeps track of all the stub methods installed in any object.
[Source]
# File lib/not_a_mock/stubber.rb, line 10 10: def initialize 11: @stubbed_methods = [] 12: end
Removes all stub methods.
# File lib/not_a_mock/stubber.rb, line 34 34: def reset 35: @stubbed_methods.each do |object, method| 36: remove_hook(object, method) 37: end 38: @stubbed_methods = [] 39: end
[Validate]