# File lib/mocha/expectation_list.rb, line 22
22:     def match_allowing_invocation(method_name, *arguments)
23:       matching_expectations(method_name, *arguments).detect { |e| e.invocations_allowed? }
24:     end