method
determine_best_match
1.3.0 -
Show latest stable
- Class:
Spec::Runner::LineNumberQuery
determine_best_match(file, line_number)protected
No documentation available.
# File lib/spec/runner/line_number_query.rb, line 34
def determine_best_match(file, line_number)
best_match.clear
file = File.expand_path(file)
@run_options.example_groups.each do |example_group|
next unless example_group.location
consider_example_group_for_best_match(example_group, file, line_number)
example_group.examples.each do |example|
consider_example_for_best_match(example, example_group, file, line_number)
end
end
end