Go to user sign in page on token failure

This commit is contained in:
2014-12-24 11:36:19 +01:00
parent da4afbc991
commit 40501f743d
7 changed files with 22 additions and 18 deletions
@@ -56,17 +56,14 @@ Feature: Sign up as user using facebook
Then the user should be redirected to the homepage
And the newly created user info should be stored in the local storage
@javascript @broken
@javascript
Scenario: Expired token
Given there is no user information stored in the local storage
When the user is on the homepage
Given I am signed in as a user
And the user is on the homepage
When the user authentication token changes
And the user is on the homepage
Then the user is redirected to the sign in page
When the user clicks the sign in via facebook button
Then the user should be redirected to the homepage
When the user has no active session
And the user authentication token changes
When the user is on the homepage
Then the newly created user info should be stored in the local storage
And there is no user information stored in the local storage
Scenario: Facebook problem OmniAuth.config.mock_auth[:facebook] = :invalid_credentials
Scenario: Valid facebook login, but declines information requested by scope