lib/guard/cucumber/inspector.rb
# Clean the changed paths and return only valid
# Cucumber features.
#
# @param [Array<String>] paths the changed paths
# @param [Array<String>] feature_sets the feature sets
# @return [Array<String>] the valid feature files
#
Clean the changed paths and return only valid
Cucumber features.
Clean the changed paths and return only valid Cucumber features .
def clean(paths, sets)
          paths.uniq!
          paths.compact!
          paths = paths.select do |p|
            cucumber_file?(p, sets) || cucumber_folder?(p, sets)
          end
          paths = paths.delete_if { |p| included_in_other_path?(p, paths) }
          clear_cucumber_files_list
          paths
        end
def clean ( paths , sets ) paths . uniq! paths . compact! paths = paths . select do | p | cucumber_file? ( p , sets ) || cucumber_folder? ( p , sets ) end paths = paths . delete_if { | p | included_in_other_path? ( p , paths ) } clear_cucumber_files_list paths end
Clean the changed paths and return only valid
Cucumber features.
Clean the changed paths and return only valid Cucumber features .
the valid feature files
the valid feature files
Array<String>
paths
sets
feature_sets the feature sets
feature_sets the feature sets