123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Mocks::VerifyingExistingClassNewMethodDouble Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: RSpec::Mocks::VerifyingExistingMethodDouble
Defined in: rspec-mocks/lib/rspec/mocks/verifying_proxy.rb

Overview

Used in place of a VerifyingExistingMethodDouble for the specific case of mocking or stubbing a new method on a class. In this case, we substitute the method signature from #initialize since new’s signature is just *args.

Constant Summary

MethodDouble - Inherited

FROZEN_ERROR_MSG, RSpecPrependedModule

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Instance Method Details

#with_signature {|Support::MethodSignature.new(object.instance_method(:initialize))| ... }

Yields:

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/verifying_proxy.rb', line 216

def with_signature
  yield Support::MethodSignature.new(object.instance_method(:initialize))
end