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-1.1.1.rc1 lib/rr/times_called_matchers/at_least_matcher.rb
rr-1.1.0 lib/rr/times_called_matchers/at_least_matcher.rb
rr-1.1.0.rc3 lib/rr/times_called_matchers/at_least_matcher.rb
rr-1.1.0.rc2 lib/rr/times_called_matchers/at_least_matcher.rb
rr-1.1.0.rc1 lib/rr/times_called_matchers/at_least_matcher.rb
rr-1.0.5 lib/rr/times_called_matchers/at_least_matcher.rb
rr-1.0.5.rc2 lib/rr/times_called_matchers/at_least_matcher.rb
rr-1.0.5.rc1 lib/rr/times_called_matchers/at_least_matcher.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/at_least_matcher.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/at_least_matcher.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/at_least_matcher.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/at_least_matcher.rb
bitclust-core-0.5.2 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/at_least_matcher.rb
bitclust-core-0.5.2 vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/at_least_matcher.rb
bitclust-core-0.5.1 vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/lib/rr/times_called_matchers/at_least_matcher.rb
mcmire-rr-1.0.5.rc1 lib/rr/times_called_matchers/at_least_matcher.rb
messagebus_ruby_api-0.4.7 spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/at_least_matcher.rb
messagebus_ruby_api-0.4.4 spec/ruby/1.9.1/gems/rr-1.0.2/lib/rr/times_called_matchers/at_least_matcher.rb
rr-1.0.4 lib/rr/times_called_matchers/at_least_matcher.rb
rr-1.0.3 lib/rr/times_called_matchers/at_least_matcher.rb