lib/templates/default/steptransformers/setup.rb in cucumber-in-the-yard-1.7.2 vs lib/templates/default/steptransformers/setup.rb in cucumber-in-the-yard-1.7.3

- old
+ new

@@ -24,9 +24,15 @@ @undefined_steps ||= Registry.all(:step).reject {|s| s.definition || s.scenario.outline? } erb(:header) + erb(:undefined_steps) end +def unique_steps(steps) + uniq_steps = {} + steps.each {|s| (uniq_steps[s.value.to_s] ||= []) << s } + uniq_steps +end + def link_transformed_step(step) value = step.value.dup if step.definition matches = step.value.match(step.definition.regex) \ No newline at end of file