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

Inherits:
Base::Searcher 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, #initialize, #test_files

Constructor Details

This class inherits a constructor from TestLauncher::Frameworks::Base::Searcher

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