class RR::TimesCalledMatchers::IntegerMatcher
Public Instance Methods
attempt?(times_called)
click to toggle source
# File lib/rr/times_called_matchers/integer_matcher.rb, line 14 def attempt?(times_called) times_called < @times end
matches?(times_called)
click to toggle source
# File lib/rr/times_called_matchers/integer_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/integer_matcher.rb, line 6 def possible_match?(times_called) times_called <= @times end