Base class for all the count validators.
Methods
Public Class methods
[ show source ]
# File lib/flexmock/validators.rb, line 20
20: def initialize(expectation, limit)
21: @exp = expectation
22: @limit = limit
23: end
Public Instance methods
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.
[ show source ]
# File lib/flexmock/validators.rb, line 28
28: def eligible?(n)
29: n < @limit
30: end