Skip to content

Instantly share code, notes, and snippets.

@leehambley
Created August 15, 2009 12:23
Show Gist options
  • Save leehambley/168339 to your computer and use it in GitHub Desktop.
Save leehambley/168339 to your computer and use it in GitHub Desktop.
Feature: Registration
In order to track contributions
As a Site Owner
I want Users to be able to register
Scenario: Register With Valid Form Data
Given I am on the registration page
Then I should see a new user form
When I fill in the form correctly
And press the Register button
Then I should see a confirmation
And there should be one User
Scenario: Register With Invalid Form Data
Given I am on the registration page
Then I should see a new user form
When I fill in the form incorrectly
And press the Register button
Then I should see an error
And there should be 0 Users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment