-
-
Save bmabey/99424 to your computer and use it in GitHub Desktop.
This file contains 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 Outline: Religious menus | |
Given I am "<Religion>" | |
When I ask to see a menu | |
Then I should be presented a menu with meats entrees | |
<Meats> | |
And I should be presented a menu with hamburger types | |
<Hamburgers> | |
Examples: | |
| Religion | Meats | Hamburgers | | |
| * | Pork | Lamb | Veal | Hamburger | Cheeseburger | | |
| Christian | Y | Y | Y | Y | Y | | |
| Jewish | N | Y | Y | Y | N | | |
| Muslim | N | Y | Y | Y | Y | | |
| Hindu | N | Y | N | N | N | |
This file contains 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
Given /I am "(.+)"/ do |regligion| | |
end | |
Then /I should be presented a menu with meat entrees/ do |meat_hash| | |
# 1: {'Pork'=>'Y', 'Lamb'=>'Y', 'Veal'=>'Y'} | |
# 2: {'Pork'=>'N', 'Lamb'=>'Y', 'Veal'=>'Y'} | |
# 3: {'Pork'=>'N', 'Lamb'=>'Y', 'Veal'=>'Y'} | |
# 4: {'Pork'=>'N', 'Lamb'=>'Y', 'Veal'=>'N'} | |
end | |
Then /I should be presented a menu with hamburger types/ do |hamburger_hash| | |
# 1: {'Hamburger'=>'Y', 'Cheeseburger'=>'Y'} | |
# 2: {'Hamburger'=>'Y', 'Cheeseburger'=>'N'} | |
# 3: {'Hamburger'=>'Y', 'Cheeseburger'=>'Y'} | |
# 4: {'Hamburger'=>'N', 'Cheeseburger'=>'N'} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment