class RSpec::Expectations::MultipleExpectationsNotMetError

def enumerated(exceptions, index_offset)

def enumerated(exceptions, index_offset)
  exceptions.each_with_index.map do |exception, index|
    index += index_offset
    formatted_message = "#{yield exception}\n#{format_backtrace(exception.backtrace).first}"
    "#{index_label index}#{indented formatted_message, index}"
  end
end