completely green

This commit is contained in:
2014-08-13 16:37:59 +02:00
parent d6e7c4998f
commit a675999d01
6 changed files with 11 additions and 5 deletions
@@ -6,8 +6,8 @@ Feature: Sign up as user using facebook
Given There is no user information stored in the local storage
When I visit the user obtain token path
Then I should be signed in as a user through facebook
And I wait 4 seconds
And I should be redirected to the user home
When I wait 4 seconds
Then I should be redirected to the user home
And the newly created user info should be stored in the local storage
@javascript
@@ -1,5 +1,7 @@
step "There is no user information stored in the local storage" do
visit '/'
page.execute_script %|Qstorage = window.localStorage|
page.evaluate_script(%|Qstorage.getItem('user_id')|).should be_blank
page.evaluate_script(%|Qstorage.getItem('auth_token')|).should be_blank
end