Sha256: 8592bc6edce26a9690a790b52c4e94b62d58bacdfcba84d377930f6bfe407e03

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

module Fakes
  class IgnoreSet
    include ArgBehaviour
    attr_accessor :arg_sets

    def initialize
      @arg_sets = []
      @times_called = 0
    end

    def capture_args(args)
      @times_called += 1
      @arg_sets << args
    end

    def matches?(args)
      return true
    end


    def was_called_with?(args)
      return @arg_sets.select{|set| set == args}.count > 0
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fakes-0.1.7 lib/fakes/ignore_set.rb