Class Index [+]

Quicksearch

RR::Adapters::Rspec::InvocationMatcher

Attributes

failure_message[R]
spy_verification_proxy[R]

Public Class Methods

new(method = nil) click to toggle source
    # File lib/rr/adapters/rspec.rb, line 29
29:         def initialize(method = nil)
30:           @verification = nil
31:           @subject = nil
32:           method_missing(method) if method
33:         end

Public Instance Methods

matches?(subject) click to toggle source
    # File lib/rr/adapters/rspec.rb, line 35
35:         def matches?(subject)
36:           @verification.subject = subject
37:           calls = RR::Space.instance.recorded_calls
38:           if error = calls.match_error(@verification)
39:             @failure_message = error.message
40:             false
41:           else
42:             true
43:           end
44:         end
method_missing(method_name, *args, &block) click to toggle source
    # File lib/rr/adapters/rspec.rb, line 50
50:         def method_missing(method_name, *args, &block)
51:           if @verification
52:             @verification.send(method_name, *args)
53:           else
54:             @verification = super
55:           end
56:           self
57:         end
nil?() click to toggle source
    # File lib/rr/adapters/rspec.rb, line 46
46:         def nil?
47:           false
48:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.