method
consider_example_for_best_match
1.2.0 -
Show latest stable
-
0 notes -
Class: Spec::Runner::SpecParser
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0 (0)
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
consider_example_for_best_match(example, example_group, file, line_number)
protected
Hide source
# File lib/spec/runner/spec_parser.rb, line 46 def consider_example_for_best_match(example, example_group, file, line_number) parsed_backtrace = parse_backtrace(example.backtrace) parsed_backtrace.each do |example_file, example_line| 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 end