From 9f38a424e7a71c3321dd24e4f1f1e5cf9a3bc63a Mon Sep 17 00:00:00 2001
From: Benjamin Neff <benjamin@coding4coffee.ch>
Date: Thu, 27 Oct 2016 04:13:59 +0200
Subject: [PATCH] Revert "Test token authentication; should allow it"

It shouldn't be allowed!

This reverts commit 46097ba8c883ef51ed4159a9271536c720664dab.

closes #7160
---
 spec/controllers/users_controller_spec.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb
index c73872d10a..0d4a31b160 100644
--- a/spec/controllers/users_controller_spec.rb
+++ b/spec/controllers/users_controller_spec.rb
@@ -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
 
-- 
GitLab