Skip to content

Instantly share code, notes, and snippets.

@zedtux
Created December 8, 2010 14:41
Show Gist options
  • Save zedtux/733352 to your computer and use it in GitHub Desktop.
Save zedtux/733352 to your computer and use it in GitHub Desktop.
Feature Booking
In order to create an agenda
As a user
I want to be able to add, edit or remove bookings
Scenario Outline: Delete booking
Given I speak <My tongue>
When I go to my bookings page
And I press "<Delete booking>"
Then I should see "<Booking deleted>"
Examples:
| My tongue | Delete booking | Booking deleted |
| English | Delete booking | Booking deleted |
| French | Supprimer cette réservation | La réservation a été supprimé |
Given /^I speak (English|French)$/ do |tongue|
I18n.locale = case tongue
when "English"
:en
when "French"
:fr
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment