Base class for all the count validators.
# File lib/flexmock/validators.rb, line 20 def initialize(expectation, limit) @exp = expectation @limit = limit end
If the expectation has been called n
times, is it still
eligible to be called again? The default answer compares n to the
established limit.
# File lib/flexmock/validators.rb, line 28 def eligible?(n) n < @limit end