Module: Guard::Jstd::CaseFinder
- Defined in:
- lib/guard/jstd/case_finder.rb
Class Method Summary collapse
Class Method Details
.find(paths) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/guard/jstd/case_finder.rb', line 4 def self.find(paths) paths.collect do |path| contents = File.read(path) contents.scan(/TestCase\s*\(\s*["']([^"']+)/) end.flatten.uniq.join(',') end |