class RSpec::Mocks::VerifyingPartialDoubleProxy

@private

Public Class Methods

new(object, expectation_ordering, optional_callback_invocation_strategy=DEFAULT_CALLBACK_INVOCATION_STRATEGY) click to toggle source
Calls superclass method RSpec::Mocks::Proxy::new
# File lib/rspec/mocks/verifying_proxy.rb, line 110
def initialize(object, expectation_ordering, optional_callback_invocation_strategy=DEFAULT_CALLBACK_INVOCATION_STRATEGY)
  super(object, expectation_ordering)
  @doubled_module = DirectObjectReference.new(object)

  # A custom method double is required to pass through a way to lookup
  # methods to determine their parameters.
  @method_doubles = Hash.new do |h, k|
    h[k] = VerifyingExistingMethodDouble.for(object, k, self)
  end

  optional_callback_invocation_strategy.call(@doubled_module)
end

Public Instance Methods

ensure_implemented(_method_name) click to toggle source
# File lib/rspec/mocks/verifying_proxy.rb, line 123
def ensure_implemented(_method_name)
  return if Mocks.configuration.temporarily_suppress_partial_double_verification
  super
end
method_reference() click to toggle source
# File lib/rspec/mocks/verifying_proxy.rb, line 128
def method_reference
  @method_doubles
end