Describes a verification of a method call. This corresponds kind of to an assertion
Initializes a new instance of a Verification
# File lib/caricature/verification.rb, line 8
8: def initialize(method_name, recorder, mode=:instance)
9: @method_name, @args, @any_args, @recorder, @mode = method_name, [], true, recorder, mode
10: end
allow any arguments ignore the argument constraint
# File lib/caricature/verification.rb, line 26
26: def allow_any_arguments
27: @any_args = true
28: self
29: end
indicates whether this verification can be for any arguments
# File lib/caricature/verification.rb, line 13
13: def any_args?
14: @any_args
15: end
figure out if this argument variation matches the provided args.
# File lib/caricature/verification.rb, line 32
32: def matches?(method_name, *args)
33: @method_name == method_name and any_args? or @args == args
34: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.