| Class | RR::SpyVerification |
| In: |
lib/rr/spy_verification.rb
|
| Parent: | Object |
| argument_expectation | [R] | |
| method_name | [R] | |
| subject | [RW] | |
| times_matcher | [R] | |
| times_matcher | [W] |
# 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
# File lib/rr/spy_verification.rb, line 26
26: def call
27: (error = RR.recorded_calls.match_error(self)) && raise(error)
28: end
# 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