Skip to content

Instantly share code, notes, and snippets.

@leehambley
Created August 15, 2009 12:31
Show Gist options
  • Save leehambley/168341 to your computer and use it in GitHub Desktop.
Save leehambley/168341 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
Background:
Given I am on the registration oage
Then I should see a new user form
When I fill in the form correctly
Scenario: Register With Valid Form Data
And press the Register button
Then I should see a confirmation
And there should be one User
Scenario: Register With Invalid Form Data
When I fill in username with ""
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