Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bmabey/99424 to your computer and use it in GitHub Desktop.
Save bmabey/99424 to your computer and use it in GitHub Desktop.
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 |
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