Skip to content

Instantly share code, notes, and snippets.

@joebuschmann
Last active August 29, 2015 14:07
Show Gist options
  • Save joebuschmann/dff4197d91065e9008a8 to your computer and use it in GitHub Desktop.
Save joebuschmann/dff4197d91065e9008a8 to your computer and use it in GitHub Desktop.
Gherkin example for limiting argument options to enum values
Scenario: Limit argument options to enum values
Given the following devices
| Product Name |
| Galaxy IV |
| iPhone |
| Windows Phone |
| Note |
| Kindle |
When I sort by product name ascending
Then they should be in the following order
| Product Name | Index |
| Galaxy IV | 1 |
| iPhone | 2 |
| Kindle | 3 |
| Note | 4 |
| Windows Phone | 5 |
When I sort by product name descending
Then they should be in the following order
| Product Name | Index |
| Windows Phone | 1 |
| Note | 2 |
| Kindle | 3 |
| iPhone | 4 |
| Galaxy IV | 5 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment