about summary refs log tree commit diff
path: root/spec/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-08-05 04:24:58 +0200
committerGitHub <noreply@github.com>2017-08-05 04:24:58 +0200
commitdf605f0f8ba795a10cf67095429bfeb7c362b7c9 (patch)
tree0d3e613b637800991c7e8bfb170b586bb1a141bb /spec/controllers
parent029786442a80ad73e1ec7a696a2b7f3dbbfbc10c (diff)
Add "signed in as" header to some pages (#4523)
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/auth/sessions_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/auth/sessions_controller_spec.rb b/spec/controllers/auth/sessions_controller_spec.rb
index 06fdbaabc..88f0a4734 100644
--- a/spec/controllers/auth/sessions_controller_spec.rb
+++ b/spec/controllers/auth/sessions_controller_spec.rb
@@ -28,7 +28,7 @@ RSpec.describe Auth::SessionsController, type: :controller do
         sign_in(user, scope: :user)
         delete :destroy
 
-        expect(response).to redirect_to(root_path)
+        expect(response).to redirect_to(new_user_session_path)
       end
     end
 
@@ -38,7 +38,7 @@ RSpec.describe Auth::SessionsController, type: :controller do
         sign_in(user, scope: :user)
         delete :destroy
 
-        expect(response).to redirect_to(root_path)
+        expect(response).to redirect_to(new_user_session_path)
       end
     end
   end