class RR::TimesCalledMatchers::AtMostMatcher

Public Instance Methods

attempt?(times_called) click to toggle source
# File lib/rr/times_called_matchers/at_most_matcher.rb, line 14
def attempt?(times_called)
  times_called < @times
end
expected_times_message() click to toggle source
# File lib/rr/times_called_matchers/at_most_matcher.rb, line 18
def expected_times_message
  "at most #{@times.inspect} times"
end
matches?(times_called) click to toggle source
# File lib/rr/times_called_matchers/at_most_matcher.rb, line 10
def matches?(times_called)
  times_called <= @times
end
possible_match?(times_called) click to toggle source
# File lib/rr/times_called_matchers/at_most_matcher.rb, line 6
def possible_match?(times_called)
  times_called <= @times
end