class Mocha::Expectation
def at_most_once
- Example: Expected method must be called at most once. -
Returns:
-
(Expectation)
- the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
def at_most_once at_most(1) end