lib/fakes/ignore_set.rb in fakes-0.1.6 vs lib/fakes/ignore_set.rb in fakes-0.1.7

- old
+ new

@@ -1,16 +1,17 @@ module Fakes class IgnoreSet include ArgBehaviour + attr_accessor :arg_sets def initialize - array :arg_sets do|a| - a.mutator :capture_args do|args| - @times_called += 1 - @arg_sets << args - end - end + @arg_sets = [] @times_called = 0 + end + + def capture_args(args) + @times_called += 1 + @arg_sets << args end def matches?(args) return true end