Sha256: af68d5631123eaeac0a9b9ad3bd9699edb2685430c7d059cd8250c96ec4ad068

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

module RR
module TimesCalledMatchers
  class AtLeastMatcher < TimesCalledMatcher
    def possible_match?(times_called)
      true
    end

    def matches?(times_called)
      times_called >= @times
    end

    def attempt?(times_called)
      true
    end

    protected
    def expected_message_part
      "Expected at least #{@times.inspect} times."
    end
  end
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rr-0.1.12 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.1.13 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.1.11 lib/rr/times_called_matchers/at_least_matcher.rb