class RSpec::Mocks::InstanceVerifyingDouble

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

Public Class Methods

new(doubled_module, *args) click to toggle source
Calls superclass method RSpec::Mocks::VerifyingDouble.new
# File lib/rspec/mocks/verifying_double.rb, line 76
def initialize(doubled_module, *args)
  @description = "#{doubled_module.description} (instance)"
  super
end

Public Instance Methods

__build_mock_proxy(order_group) click to toggle source
# File lib/rspec/mocks/verifying_double.rb, line 81
def __build_mock_proxy(order_group)
  VerifyingProxy.new(self, order_group, @name,
                     @doubled_module,
                     InstanceMethodReference
  )
end