# File lib/mocha/expectation.rb, line 167 def at_most(maximum_number_of_times) @cardinality = Cardinality.at_most(maximum_number_of_times) self end