A mock providing a custom proxy that can verify the validity of any method stubs or expectations against the public instance methods of the given class.
@private
# File lib/rspec/mocks/verifying_double.rb, line 66 def initialize(doubled_module, *args) @doubled_module = doubled_module super( "#{doubled_module.description} (instance)", *args ) end
# File lib/rspec/mocks/verifying_double.rb, line 75 def __build_mock_proxy(order_group) VerifyingProxy.new(self, order_group, @name, @doubled_module, InstanceMethodReference ) end