tracks/features/create_admin.feature
2009-04-17 08:56:11 +02:00

32 lines
No EOL
1.2 KiB
Gherkin

Feature: Signup new users
In order to be able to administer Tracks
As a user who just installed Tracks
I want to create an admin account
Scenario: Successful signup
Given no users exists
When I go to the homepage
Then I should be redirected to the signup page
When I successfully submit the signup form
Then I should be on the homepage
And I should be an admin
Scenario: Signup should be refused when password and confirmation is not the same
Given no users exists
When I go to the signup page
And I submit signup form with dissimmilar password and confirmation
Then I should be redirected to the signup page
And I should see "Password doesn't match confirmation"
Scenario: With public signups turned off, signup should be refused when an admin user exists
Given public signups are turned off
And an admin user exists
When I go to the signup page
Then I should see "You don't have permission to sign up for a new account."
Scenario: With public signups turned on, signup should possible when an admin user exists
Given public signups are turned on
And an admin user exists
When I go to the signup page
Then I should see "Sign up a new user"