Permalink
Browse files

scenario outlines - whaaaaaaaaaat?

  • Loading branch information...
1 parent 673effa commit e04498118b6b809bc0d733a41adc73d370059737 @laribee committed Mar 16, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/dopecukes/formatter.coffee
@@ -17,27 +17,28 @@ formatFeatureElement = (element) =>
@output += "<section class='#{elementType}'>"
formatBackground(element) if elementType == "background"
formatScenario(element) if elementType == "scenario"
+ formatScenarioOutline(element) if elementType == "scenario_outline"
@output += "</section>"
formatBackground = (background) =>
@output += "<h2>Background</h2>"
formatTags(background.tags) if background.tags?
@output += "<ul class='steps'>"
- formatStep(step) for step in background.steps?
+ formatStep(step) for step in background.steps
@output += "</ul>"
formatScenario = (scenario) =>
@output += "<h2>#{scenario.name}</h2>"
formatTags(scenario.tags) if scenario.tags?
@output += "<ul class='steps'>"
- formatStep(step) for step in scenario.steps?
+ formatStep(step) for step in scenario.steps
@output += "</ul>"
-formatScenario = (scenario_outline) =>
+formatScenarioOutline = (scenario_outline) =>
@output += "<h2>#{scenario_outline.name}</h2>"
formatTags(scenario_outline.tags) if scenario_outline.tags?
@output += "<ul class='steps'>"
- formatStep(step) for step in scenario_outline.steps?
+ formatStep(step) for step in scenario_outline.steps
@output += "</ul>"
formatStep = (step) =>

0 comments on commit e044981

Please sign in to comment.