Module: Guard::Stendhal::Inspector

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

Class Method Summary collapse

Class Method Details

.clean(paths) ⇒ Object



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

def clean(paths)
  paths.uniq!
  paths.compact!
  paths = paths.select { |p| spec_file?(p) || spec_folder?(p) }
  paths = paths.delete_if { |p| included_in_other_path?(p, paths) } 
  clear_spec_files_list
  paths
end