Skip to content

Instantly share code, notes, and snippets.

@relaxdiego
Created April 19, 2012 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save relaxdiego/2424861 to your computer and use it in GitHub Desktop.
Save relaxdiego/2424861 to your computer and use it in GitHub Desktop.
Reasons...
Scenario Outline: Create a user with certain attributes
Given I am authorized to create users in the system
And a user with username <Username> does not exist in the system
When I create a user with attributes <Username>, <Email>, <Password>, and <Password Confirmation>
Then the user will be <Created or Not>
Examples: Valid User Attributes
| Username | Email | Password | Password Confirmation | Created or Not |
| astark | astark@gmail.com | fkd2350a | fkd2350a | Created |
| astark | astark@gmail.com | ++afd]3b | ++afd]3b | Created |
Examples: Invalid User Attributes
| Username | Email | Password | Password Confirmation | Created or Not | Reason |
| (None) | astark@gmail.com | fkd2350a | fkd2350a | Not Created | Username can't be empty |
| astark+ | astark@gmail.com | fkd2350a | fkd2350a | Not Created | Username can only contain alphanumeric characters |
| astark | (None) | fkd2350a | fkd2350a | Not Created | Email can't be empty |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment