method
consider_example_group_for_best_match

1.3.0 -
Show latest stable
-
0 notes -
Class: Spec::Runner::LineNumberQuery
- 1.1.4
- 1.1.12
- 1.2.0
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
consider_example_group_for_best_match(example_group, file, line_number)
protected
Hide source
# File lib/spec/runner/line_number_query.rb, line 47 def consider_example_group_for_best_match(example_group, file, line_number) example_group_file, example_group_line = parse_location(example_group.location) if is_best_match?(file, line_number, example_group_file, example_group_line) best_match.clear best_match[:example_group] = example_group best_match[:line] = example_group_line end end