Class: Inspec::Targets::DirsHelper::ServerspecDir
- Inherits:
-
Object
- Object
- Inspec::Targets::DirsHelper::ServerspecDir
- Defined in:
- lib/inspec/targets/dir.rb
Instance Method Summary collapse
Instance Method Details
#get_filenames(paths) ⇒ Object
58 59 60 61 62 |
# File 'lib/inspec/targets/dir.rb', line 58 def get_filenames(paths) paths.find_all do |path| path.start_with? 'spec' and path.end_with? '_spec.rb' end end |
#handles?(paths) ⇒ Boolean
54 55 56 |
# File 'lib/inspec/targets/dir.rb', line 54 def handles?(paths) paths.include?('spec') end |