Acceptance tests for user

This commit is contained in:
2015-09-17 17:46:33 +02:00
parent 8e931cabd4
commit cb744943bd
35 changed files with 91 additions and 49 deletions
@@ -1,15 +1,11 @@
step "there is no user information stored in the local storage" do
visit '/'
user_visit '/'
page.execute_script %|Qstorage = window.localStorage|
page.execute_script(%|Qstorage.removeItem('user_id')|)
page.execute_script(%|Qstorage.removeItem('auth_token')|)
end
step "I visit the user obtain token path" do
visit user_root_path # obtain token through ember application
end
step "there is a user" do
@user ||= create :user
end