class Spec::Runner::LineNumberQuery

def spec_name_for(file, line_number)

def spec_name_for(file, line_number)
  best_match.clear
  file = File.expand_path(file)
  determine_best_match(file, line_number)
  if best_match[:example_group]
    if best_match[:example]
      "#{best_match[:example_group].description} #{best_match[:example].description}"
    else
      best_match[:example_group].description
    end
  else
    nil
  end
end