class Mocha::Expectation
def times(range)
- Example: Specifying a range in the number of expected invocations. -
Example: Specifying a specific number of expected invocations. -
Returns:
-
(Expectation)
- the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
Parameters:
-
range
(Range, Integer
) -- specifies the allowable range in the number of expected invocations.
def times(range) @cardinality.times(range) self end