Class: RR::SpyVerificationProxy

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

Direct Known Subclasses

Adapters::Rspec::InvocationMatcher

Instance Method Summary collapse

Constructor Details

#initialize(subject) ⇒ 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



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

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