Class: RR::TimesCalledMatchers::AtLeastMatcher
Instance Attribute Summary
#times
Instance Method Summary
collapse
#==, create, #error_message, #initialize
Instance Method Details
#attempt?(times_called) ⇒ Boolean
12
13
14
|
# File 'lib/rr/times_called_matchers/at_least_matcher.rb', line 12
def attempt?(times_called)
times_called < @times
end
|
#matches?(times_called) ⇒ Boolean
8
9
10
|
# File 'lib/rr/times_called_matchers/at_least_matcher.rb', line 8
def matches?(times_called)
times_called >= @times
end
|
#possible_match?(times_called) ⇒ Boolean
4
5
6
|
# File 'lib/rr/times_called_matchers/at_least_matcher.rb', line 4
def possible_match?(times_called)
true
end
|