Class: RSpec::Mocks::VerifyingExistingMethodDouble
- Inherits:
-
VerifyingMethodDouble
- Object
- MethodDouble
- VerifyingMethodDouble
- RSpec::Mocks::VerifyingExistingMethodDouble
- Defined in:
- lib/rspec/mocks/verifying_proxy.rb
Overview
A VerifyingMethodDouble fetches the method to verify against from the original object, using a MethodReference. This works for pure doubles, but when the original object is itself the one being modified we need to collapse the reference and the method double into a single object so that we can access the original pristine method definition.