Skip to content

Instantly share code, notes, and snippets.

@aslakhellesoy
Created April 21, 2009 20:46
Show Gist options
  • Save aslakhellesoy/99376 to your computer and use it in GitHub Desktop.
Save aslakhellesoy/99376 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
<meats>
Examples:
| Religion | Pork | Lamb | Veal |
| Christian | Y | Y | Y |
| Jewish | N | Y | Y |
| Muslim | N | Y | Y |
| Hindu | N | Y | N |
Given /I am "(.+)"/ do |regligion|
end
Then /I should be presented a menu/ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment