Revert "Test token authentication; should allow it"

It shouldn't be allowed!

This reverts commit 46097ba8c8.

closes #7160
This commit is contained in:
Benjamin Neff 2016-10-27 04:13:59 +02:00 committed by Dennis Schubert
parent d421e42ddb
commit 9f38a424e7
No known key found for this signature in database
GPG key ID: 5A0304BEA7966D7E

View file

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