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