Module: Guard::Cucumber::Inspector

Defined in:
lib/guard/cucumber/inspector.rb

Class Method Summary collapse

Class Method Details

.clean(paths) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/guard/cucumber/inspector.rb', line 6

def clean(paths)
  paths.uniq!
  paths.compact!
  paths = paths.select { |p| cucumber_file?(p) || cucumber_folder?(p) }
  paths = paths.delete_if { |p| included_in_other_path?(p, paths) }
  clear_cucumber_files_list
  paths
end