Sha256: 1e4d44405fa53881832c2dc4fb7b59b2f92df8364e88602d81f0ed625f2f03e0

Contents?: true

Size: 299 Bytes

Versions: 66

Compression:

Stored size: 299 Bytes

Contents

module RR
  module TimesCalledMatchers #:nodoc:
    class AtLeastMatcher < TimesCalledMatcher
      include NonTerminal

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

      def expected_times_message
        "at least #{@times.inspect} times"
      end
    end
  end
end

Version data entries

66 entries across 62 versions & 8 rubygems

Version Path
rr-0.10.0 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.9.0 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.7.0 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.7.1 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.8.1 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.8.0 lib/rr/times_called_matchers/at_least_matcher.rb