Sha256: 023804d4e54ca660402a6949fd29d9800389b09e3cc844b863e453e10ab262e4

Contents?: true

Size: 324 Bytes

Versions: 26

Compression:

Stored size: 324 Bytes

Contents

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

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

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

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
adva-0.3.2 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.3.1 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.3.0 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.2.4 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.2.3 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.2.2 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.2.1 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.2.0 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.1.4 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.1.3 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.1.2 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.1.1 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.1.0 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
adva-0.0.1 test/rr/lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.4.8 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.4.9 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.4.3 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.4.10 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.4.1 lib/rr/times_called_matchers/at_least_matcher.rb
rr-0.4.2 lib/rr/times_called_matchers/at_least_matcher.rb