Test token authentication; should allow it

This commit is contained in:
Lukas Matt 2014-11-13 11:42:24 +01:00
parent 0308b70287
commit 46097ba8c8

View file

@ -210,11 +210,11 @@ describe UsersController, :type => :controller do
expect(assigns[:email_prefs]['mentioned']).to be false
end
it 'does not allow token auth' do
it 'does allow token auth' do
sign_out :user
bob.reset_authentication_token!
get :edit, :auth_token => bob.authentication_token
expect(response).to redirect_to new_user_session_path
expect(response.status).to eq(200)
end
end