Skip to content

Instantly share code, notes, and snippets.

@zaid
Created January 15, 2012 01:31
Show Gist options
  • Save zaid/1613788 to your computer and use it in GitHub Desktop.
Save zaid/1613788 to your computer and use it in GitHub Desktop.
Create event feature (using Scenario outlines)
Feature: create an event
In order to organize my social gatherings
As an organizer
I want to create events
Scenario Outline: create a valid event
Given that I am logged-in
And I click "create event"
When I enter "<title>" in the event "title"
And I enter "<attendees>" in the event "attendees"
And I click the submit button
Then the event should be created
And the event title should be equal to "<title>"
And the event attendees should be equal to "<attendees>"
Scenarios: create an event with one attendee
| title | attendees |
| bday party | [email protected] |
Scenarios: create an event with two attendees
| title | attendees |
| new years! | [email protected];[email protected] |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment