class RSpec::Core::Notifications::FailedExampleNotification

def find_failed_line

def find_failed_line
  path = File.expand_path(example.file_path)
  exception.backtrace.find do |line|
    match = line.match(/(.+?):(\d+)(|:\d+)/)
    match && match[1].downcase == path.downcase
  end
end