# File lib/mocha/expectation.rb, line 67 67: def twice 68: @cardinality = Cardinality.exactly(2) 69: self 70: end