# File lib/mocha/auto_verify.rb, line 40
40:     def mock(*arguments, &block)
41:       name = arguments.shift if arguments.first.is_a?(String)
42:       expectations = arguments.shift || {}
43:       mock = Mock.new(name, &block)
44:       mock.expects(expectations)
45:       mocks << mock
46:       mock
47:     end