Parent

Class Index [+]

Quicksearch

RR::SpyVerification

Attributes

argument_expectation[R]
method_name[R]
times_matcher[R]
subject[RW]
times_matcher[W]

Public Class Methods

new(subject, method_name, args) click to toggle source
   # File lib/rr/spy_verification.rb, line 3
3:     def initialize(subject, method_name, args)
4:       @subject = subject
5:       @method_name = method_name.to_sym
6:       set_argument_expectation_for_args(args)
7:       @ordered = false
8:       once
9:     end

Public Instance Methods

call() click to toggle source
    # File lib/rr/spy_verification.rb, line 26
26:     def call
27:       (error = RR.recorded_calls.match_error(self)) && raise(error)
28:     end
ordered() click to toggle source
    # File lib/rr/spy_verification.rb, line 17
17:     def ordered
18:       @ordered = true
19:       self
20:     end
ordered?() click to toggle source
    # File lib/rr/spy_verification.rb, line 22
22:     def ordered?
23:       @ordered
24:     end
to_proc() click to toggle source
    # File lib/rr/spy_verification.rb, line 30
30:     def to_proc
31:       lambda do
32:         call
33:       end
34:     end

Protected Instance Methods

install_method_callback(return_value_block) click to toggle source
    # File lib/rr/spy_verification.rb, line 44
44:     def install_method_callback(return_value_block)
45:       # Do nothing. This is to support DefinitionConstructionMethods
46:     end
set_argument_expectation_for_args(args) click to toggle source
    # File lib/rr/spy_verification.rb, line 39
39:     def set_argument_expectation_for_args(args)
40:       # with_no_args and with actually set @argument_expectation
41:       args.empty? ? with_no_args : with(*args)
42:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.