Acceptance tests for user
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user