Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aslakhellesoy/99620 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/99620 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
<Pork..Veal>
And I should be presented a menu with hamburger types
<Hamburger..Cheeseburger>
Examples:
| Religion | 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