Class: CukeIterations::ScenarioListGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/cuke_iterations/scenario_list_generator.rb

Class Method Summary collapse

Class Method Details

.for_iteration(parsed_features, iteration) ⇒ Object



4
5
6
7
8
9
# File 'lib/cuke_iterations/scenario_list_generator.rb', line 4

def for_iteration(parsed_features, iteration)
  parsed_features.select do |f|
    next if (f[:tags] & iteration[:exclude_tags]).any?
    (f[:tags] & iteration[:include_tags]).any?
  end
end