jnicklas/turnip

View on GitHub
examples/scenario_outline_table_substitution.feature

Summary

Maintainability
Test Coverage
Feature: using scenario outlines
  Scenario Outline: a simple outline
    Given there is a monster with hitpoints:
      | hit_points |
      | <hp>       |
   When I attack the monster and do <damage> points damage
    Then the monster should be <state>

    Examples:
      | hp   | damage | state   |
      | 10   | 13     | dead    |
      | 8    | 5      | alive   |