Flowdock
method

determine_best_match

Importance_0
determine_best_match(file, line_number) protected

No documentation

This method has no description. You can help the RSpec community by adding new notes.

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
Register or log in to add new notes.