Module: RSpec::Mocks::PartialClassDoubleProxyMethods

Defined in:
lib/rspec/mocks/proxy.rb

Overview

When we mock or stub a method on a class, we have to treat it a bit different, because normally singleton method definitions only affect the object on which they are defined, but on classes they affect subclasses, too. As a result, we need some special handling to get the original method.