Sha256: 0f236c845e906815542c14cc23a865401ed938bb2b8c29c1cdea2aa3b5e92382
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 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 self.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fakes-1.0.8 | lib/fakes/ignore_set.rb |
fakes-1.0.7 | lib/fakes/ignore_set.rb |