Class: RR::SpyVerificationProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/rr/spy_verification_proxy.rb

Direct Known Subclasses

Integrations::RSpec::InvocationMatcher

Instance Method Summary collapse

Constructor Details

#initialize(subject) ⇒ SpyVerificationProxy

Returns a new instance of SpyVerificationProxy.



5
6
7
# File 'lib/rr/spy_verification_proxy.rb', line 5

def initialize(subject)
  @subject = subject
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args, &block) ⇒ Object



10
11
12
# File 'lib/rr/spy_verification_proxy.rb', line 10

def method_missing(method_name, *args, **kwargs, &block)
  SpyVerification.new(@subject, method_name, args, kwargs)
end