Module: Kaya::Cucumber::Features

Defined in:
lib/kaya/cucumber/features.rb

Class Method Summary collapse

Class Method Details

.feature_files_namesArray

Returns an array of all feature files paths (only feature files)

Returns:

  • (Array)


7
8
9
10
11
# File 'lib/kaya/cucumber/features.rb', line 7

def self.feature_files_names
  Dir['**/*.*'].select do |file_path_name|
    file_path_name.start_with? "features/" and file_path_name.end_with? ".feature"
  end
end