class Mocha::Expectation
def at_most(maximum_number_of_times)
- Example: Expected method must be called at most twice. -
Returns:
-
(Expectation)
- the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
Parameters:
-
maximum_number_of_times
(Integer
) -- maximum number of expected invocations.
def at_most(maximum_number_of_times) @cardinality.at_most(maximum_number_of_times) self end