method
consider_example_for_best_match
1.3.0 -
Show latest stable
- Class:
Spec::Runner::LineNumberQuery
consider_example_for_best_match(example, example_group, file, line_number)protected
No documentation available.
# File lib/spec/runner/line_number_query.rb, line 56
def consider_example_for_best_match(example, example_group, file, line_number)
example_file, example_line = parse_location(example.location)
if is_best_match?(file, line_number, example_file, example_line)
best_match.clear
best_match[:example_group] = example_group
best_match[:example] = example
best_match[:line] = example_line
end
end