dox Executable Documentation

Display todays dishes

No food today

Given I am logged as the user 'Homer'
When I open the page
Then there should be no food

Show todays dishes

Given I am logged as the user 'Homer'
Given now is '2013-04-04 18:00:00'
Given an order 'order1' with 1 menus each 3 dishes starting on '2013-04-04'
Given dish 1 of menu 1 of this order is 'Dish 1'
Given dish 2 of menu 1 of this order is 'Dish 2'
Given dish 3 of menu 1 of this order is 'Dish 3'
When I open the page
Then there should be 3 dishes
Then dish 1 should be 'Dish 1'
Then dish 2 should be 'Dish 2'
Then dish 3 should be 'Dish 3'