Last active
August 29, 2015 14:07
-
-
Save joebuschmann/dff4197d91065e9008a8 to your computer and use it in GitHub Desktop.
Gherkin example for limiting argument options to enum values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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