Sha256: 84a29364baaefe7acdaf45bf53612cba5973f34c76c313e794c482b6bb13c09c

Contents?: true

Size: 373 Bytes

Versions: 5

Compression:

Stored size: 373 Bytes

Contents

module RR
module TimesCalledMatchers
  class AnyTimesMatcher < TimesCalledMatcher
    def initialize
    end

    def possible_match?(times_called)
      true
    end

    def matches?(times_called)
      true
    end

    def attempt?(times_called)
      true
    end

    protected
    def expected_message_part
      "Expected any number of times."
    end
  end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rr-0.1.13 lib/rr/times_called_matchers/any_times_matcher.rb
rr-0.1.11 lib/rr/times_called_matchers/any_times_matcher.rb
rr-0.1.12 lib/rr/times_called_matchers/any_times_matcher.rb
rr-0.1.10 lib/rr/times_called_matchers/any_times_matcher.rb
rr-0.1.9 lib/rr/times_called_matchers/any_times_matcher.rb