Add authentication and User model
* Add User model * Add SessionsController * Add password authentication on User * Request authentication for all actions except sign in * Add some helpers for ApplicationController * Update features to work with mandatory authentication
This commit is contained in:
17
features/sessions.feature
Normal file
17
features/sessions.feature
Normal file
@@ -0,0 +1,17 @@
|
||||
Feature: User
|
||||
|
||||
So that I can manage my own content
|
||||
As a listener
|
||||
I want the application to require a valid authentication
|
||||
|
||||
Scenario: Unauthenticated user
|
||||
Given I am not signed in
|
||||
When I go to the home page
|
||||
Then I should be redirected to the sign in page
|
||||
|
||||
Scenario: User authentication
|
||||
Given I am not signed in
|
||||
When I go to the home page
|
||||
Then I should be redirected to the sign in page
|
||||
When I submit valid credentials
|
||||
Then I should be redirected to the home page
|
Reference in New Issue
Block a user