mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-07 09:48:50 +01:00
migrate login rjs to erb and reformat features
This commit is contained in:
parent
05b3b7cebc
commit
520e45fe6b
17 changed files with 137 additions and 152 deletions
|
|
@ -1,5 +1,4 @@
|
|||
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
|
||||
|
|
@ -9,7 +8,7 @@ Feature: Signup new users
|
|||
| login | password | is_admin |
|
||||
| testuser | secret | false |
|
||||
| admin | secret | true |
|
||||
|
||||
|
||||
Scenario: Successful signup
|
||||
Given no users exists
|
||||
When I go to the homepage
|
||||
|
|
@ -17,20 +16,20 @@ Feature: Signup new users
|
|||
When I submit the signup form with username "admin", password "secret" and confirm with "secret"
|
||||
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 the signup form with username "admin", password "secret" and confirm with "error"
|
||||
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
|
||||
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
|
||||
When I go to the signup page
|
||||
Then I should see "Sign up a new user"
|
||||
Then I should see "Sign up a new user"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue