From 096035ae115e77e517daae6184cb0a79c52547f1 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Wed, 8 Aug 2018 19:50:50 +0300 Subject: [PATCH] Revert old behaviour --- app/controllers/admin/sessions_controller.rb | 2 +- test/system/admin_area/protected_area_test.rb | 2 +- test/system/admin_area/sign_in_test.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/admin/sessions_controller.rb b/app/controllers/admin/sessions_controller.rb index f4feefc3a..57d702059 100644 --- a/app/controllers/admin/sessions_controller.rb +++ b/app/controllers/admin/sessions_controller.rb @@ -3,7 +3,7 @@ module Admin private def after_sign_in_path_for(_resource_or_scope) - admin_root_path + admin_domains_path end def after_sign_out_path_for(_resource_or_scope) diff --git a/test/system/admin_area/protected_area_test.rb b/test/system/admin_area/protected_area_test.rb index 8aea012f0..9390348f0 100644 --- a/test/system/admin_area/protected_area_test.rb +++ b/test/system/admin_area/protected_area_test.rb @@ -17,6 +17,6 @@ class AdminAreaProtectedAreaTest < ApplicationSystemTestCase sign_in users(:admin) visit new_admin_user_session_url assert_text 'You are already signed in' - assert_current_path admin_root_path + assert_current_path admin_domains_path end end \ No newline at end of file diff --git a/test/system/admin_area/sign_in_test.rb b/test/system/admin_area/sign_in_test.rb index dcef0e3aa..09c1f7549 100644 --- a/test/system/admin_area/sign_in_test.rb +++ b/test/system/admin_area/sign_in_test.rb @@ -12,7 +12,7 @@ class AdminAreaSignInTest < ApplicationSystemTestCase click_button 'Sign in' assert_text 'Signed in successfully' - assert_current_path admin_root_path + assert_current_path admin_domains_path end def test_wrong_password @@ -39,6 +39,6 @@ class AdminAreaSignInTest < ApplicationSystemTestCase click_button 'Sign in' assert_text 'Signed in successfully' - assert_current_path admin_root_path + assert_current_path admin_domains_path end end \ No newline at end of file