Parent

Methods

FlexMock::CountValidator

                                                                  

Base class for all the count validators.

Public Class Methods

new(expectation, limit) click to toggle source
    # File lib/flexmock/validators.rb, line 20
20:     def initialize(expectation, limit)
21:       @exp = expectation
22:       @limit = limit
23:     end

Public Instance Methods

eligible?(n) click to toggle source

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
28:     def eligible?(n)
29:       n < @limit
30:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.