# File lib/mocha/expectation_list.rb, line 14 14: def remove_all_matching_method(method_name) 15: @expectations.reject! { |expectation| expectation.matches_method?(method_name) } 16: end