A recording of an argument variation. Every time a method is called with different arguments the method call recorder will create an ArgumentVariation these variations are used later in the assertion to verify against specific argument values
initializes a new instance of an argument recording. configures it with 1 call count and the args as an Array
# File lib/caricature/method_call_recorder.rb, line 21
21: def initialize(args=[], call_number=1, block=nil)
22: @args = args
23: @block = block
24: @call_number = call_number
25: end
compares one argument variation to another. Also takes an array as an argument
# File lib/caricature/method_call_recorder.rb, line 29
29: def ==(other)
30: other = self.class.new(other) if other.respond_to?(:each)
31: return true if other.args.first.is_a?(Symbol) and other.args.first == :any
32: other.args == args
33: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.