Class: RSpec::Mocks::InstanceVerifyingDouble

Inherits:
Object
  • Object
show all
Includes:
TestDouble, VerifyingDouble
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/verifying_double.rb

Overview

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.

Instance Method Summary collapse

Methods included from VerifyingDouble

#__send__, #initialize, #method_missing, #respond_to?, #send

Methods included from TestDouble

#==, #__build_mock_proxy_unless_expired, #__disallow_further_usage!, #as_null_object, #freeze, #initialize, #inspect, #null_object?, #respond_to?, #to_s

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RSpec::Mocks::VerifyingDouble

Instance Method Details

#__build_mock_proxy(order_group) ⇒ Object



73
74
75
76
77
78
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/verifying_double.rb', line 73

def __build_mock_proxy(order_group)
  VerifyingProxy.new(self, order_group,
                     @doubled_module,
                     InstanceMethodReference
  )
end