method
determine_best_match

1.2.8 -
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?
determine_best_match(file, line_number)
protected
Hide source
# 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