Class RR::TimesCalledMatchers::AtMostMatcher
In: lib/rr/times_called_matchers/at_most_matcher.rb
Parent: TimesCalledMatcher

Methods

Included Modules

Terminal

Public Instance methods

[Source]

    # File lib/rr/times_called_matchers/at_most_matcher.rb, line 14
14:       def attempt?(times_called)
15:         times_called < @times
16:       end

[Source]

    # 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

[Source]

    # File lib/rr/times_called_matchers/at_most_matcher.rb, line 10
10:       def matches?(times_called)
11:         times_called <= @times
12:       end

[Source]

   # File lib/rr/times_called_matchers/at_most_matcher.rb, line 6
6:       def possible_match?(times_called)
7:         times_called <= @times
8:       end

[Validate]