Class: TestLauncher::Frameworks::RSpec::Searcher

Inherits:
Base::Searcher
  • Object
show all
Defined in:
lib/test_launcher/frameworks/rspec.rb

Instance Attribute Summary

Attributes inherited from Base::Searcher

#raw_searcher

Instance Method Summary collapse

Methods inherited from Base::Searcher

#examples, #grep, #test_files

Instance Method Details

#by_line(file_pattern, line_number) ⇒ Object



26
27
28
29
30
31
32
33
34
35
# File 'lib/test_launcher/frameworks/rspec.rb', line 26

def (file_pattern, line_number)
  files = test_files(file_pattern)

  files.map {|file|
    {
      file: file,
      line_number: line_number
    }
  }
end