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
Class Method Summary
VerifyingExistingMethodDouble
- Inherited
VerifyingMethodDouble
- Inherited
MethodDouble
- Inherited
Instance Attribute Summary
VerifyingExistingMethodDouble
- Inherited
MethodDouble
- Inherited
Instance Method Summary
- #with_signature {|Support::MethodSignature.new(object.instance_method(:initialize))| ... } Internal use only
VerifyingExistingMethodDouble
- Inherited
VerifyingMethodDouble
- Inherited
#add_expectation, #add_stub, #message_expectation_class, #proxy_method_invoked, #validate_arguments! |
MethodDouble
- Inherited
#add_default_stub, #add_expectation, #add_simple_expectation, | |
#add_simple_stub | A simple stub can only return a concrete value for a message, and cannot match on arguments. |
#add_stub, #build_expectation, #clear, #configure_method, #define_proxy_method, | |
#message_expectation_class | The type of message expectation to create has been extracted to its own method so that subclasses can override it. |
#method_missing_block, #object_singleton_class, #original_implementation_callable, #original_method, | |
#proxy_method_invoked | The implementation of the proxied method. |
#raise_method_not_stubbed_error, #remove_stub, #remove_stub_if_present, #reset, #restore_original_method, #restore_original_visibility, | |
#save_original_implementation_callable! | |
#setup_simple_method_double, #show_frozen_warning, #verify, #visibility, | |
#definition_target | See additional method definition at line 255. |
#new_rspec_prepended_module, #remove_method_from_definition_target, #usable_rspec_prepended_module |
Instance Method Details
#with_signature {|Support::MethodSignature.new(object.instance_method(:initialize))| ... }
# File 'rspec-mocks/lib/rspec/mocks/verifying_proxy.rb', line 216
def with_signature yield Support::MethodSignature.new(object.instance_method(:initialize)) end