23 lines
573 B
Ruby
23 lines
573 B
Ruby
|
|
step "There is no user information stored in the local storage" do
|
|
|
|
end
|
|
|
|
step "I visit the user obtain token path" do
|
|
visit user_obtain_token_path
|
|
end
|
|
|
|
step "I should be signed in as a user" do
|
|
@user = User.find_by_oauth_token 'fbAuthToken234'
|
|
page.evaluate_script(%|Qstorage.getItem('user_id')|).should == @user.id
|
|
page.evaluate_script(%|Qstorage.getItem('auth_token')|).should == @user.authentication_token
|
|
binding.pry
|
|
end
|
|
|
|
step "I should be redirected to the user home" do
|
|
|
|
end
|
|
step "the newly created user info should be stored in the local storage" do
|
|
|
|
end
|