class Mocha::Expectation
def once
- Example: Expected method must be invoked exactly once. -
Returns:
-
(Expectation)
- the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
def once @cardinality.exactly(1) self end