Sha256: 83e7fd878b7265d75c683bddf33333d742af10511fd1ca4e175bbe8130ebc3ae
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
module Fakes class IgnoreSet include ArgBehaviour def initialize @times_called = 0 end def arg_sets @arg_sets ||= [] end def capture_args(args) @times_called += 1 arg_sets << args end def matches?(args) return true end def was_called_with?(args) matcher = ArgMatchFactory.create_arg_matcher_using(args) return arg_sets.select{|set| matcher.matches?(set)}.count > 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fakes-1.0.6 | lib/fakes/ignore_set.rb |