Sha256: 72254e2bd21a428172ae63ada905aed47bf95a44490e9b1782e82494fff422fe
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
module CukeIterations class IterationFileFinder def find(features_dir, iteration_file = 'cuke_iterations.yml') raise 'features_dir cannot be nil' unless features_dir iteration_file_locations = [ iteration_file, File.join(features_dir, iteration_file) ] location = iteration_file_locations.select { |location| File.exist? location }.first raise "Couldn't find iterations file, tried the following: #{iteration_file_locations.join(', ')}" unless location location end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cuke_iterations-0.0.2 | lib/cuke_iterations/iteration_file_finder.rb |