Skip to content

Instantly share code, notes, and snippets.

@joebuschmann
Last active August 29, 2015 14:07
Show Gist options
  • Save joebuschmann/103821c6047f7109ddc1 to your computer and use it in GitHub Desktop.
Save joebuschmann/103821c6047f7109ddc1 to your computer and use it in GitHub Desktop.
Gherkin example for converting oridinal text to integers
Scenario: Convert 1st, 2nd, etc to integral values
Given the following devices
| Product Name |
| Galaxy IV |
| iPhone |
| Windows Phone |
| Note |
| Kindle |
| Blackberry Storm |
| iPad |
| Surface |
| Surface Pro |
| HTC One |
When I remove the 10th item
And I remove the 4th item
And I remove the 3rd item
And I remove the 2nd item
And I remove the 1st item
Then the following devices remain
| Product Name |
| Kindle |
| Blackberry Storm |
| iPad |
| Surface |
| Surface Pro |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment