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 def initialize(method_name, recorder, mode=:instance) @method_name, @args, @any_args, @recorder, @mode = method_name, [], true, recorder, mode end
allow any arguments ignore the argument constraint
# File lib/caricature/verification.rb, line 25 def allow_any_arguments @any_args = true self end
indicates whether this verification can be for any arguments
# File lib/caricature/verification.rb, line 13 def any_args? @any_args end
figure out if this argument variation matches the provided args.
# File lib/caricature/verification.rb, line 31 def matches?(method_name, *args) @method_name == method_name and any_args? or @args == args end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.