method
spec_name_for

1.3.1 -
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?
spec_name_for(file, line_number)
public
Hide source
# File lib/spec/runner/line_number_query.rb, line 12 def spec_name_for(file, line_number) best_match.clear file = File.expand_path(file) determine_best_match(file, line_number) if best_match[:example_group] if best_match[:example] "#{best_match[:example_group].description} #{best_match[:example].description}" else best_match[:example_group].description end else nil end end