# File lib/rspec/mocks/message_expectation.rb, line 269 def at_most(n, &block) @method_block = block if block set_expected_received_count :at_most, n self end