@ -13,7 +13,7 @@ class UserTokensController < ApplicationController
notice = "Authenticated successfully, yippie!"
end
redirect_to root_path, :notice => notice
redirect_to profile_path(current_user), :notice => notice
else
render :error
@ -21,10 +21,10 @@ describe UserTokensController do
post :create, :user_token => user_token.token
it 'redirects to root_path' do
it 'redirects to ~nickname' do
response.should redirect_to(root_path)
response.should redirect_to(profile_path(user))