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
56 57 58 59 60 |
# File 'lib/inspec/targets/dir.rb', line 56 def get_filenames(paths) paths.find_all do |path| path.start_with? 'spec' and path.end_with? '_spec.rb' end end |
#handles?(paths) ⇒ Boolean
52 53 54 |
# File 'lib/inspec/targets/dir.rb', line 52 def handles?(paths) paths.include?('spec') end |