Class | RR::TimesCalledMatchers::AtMostMatcher |
In: |
lib/rr/times_called_matchers/at_most_matcher.rb
|
Parent: | TimesCalledMatcher |
# File lib/rr/times_called_matchers/at_most_matcher.rb, line 14 14: def attempt?(times_called) 15: times_called < @times 16: end
# File lib/rr/times_called_matchers/at_most_matcher.rb, line 18 18: def expected_times_message 19: "at most #{@times.inspect} times" 20: end
# File lib/rr/times_called_matchers/at_most_matcher.rb, line 10 10: def matches?(times_called) 11: times_called <= @times 12: end