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

- (SpyVerificationProxy) initialize(subject)



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

- (Object) method_missing(method_name, *args, &block)



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