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