mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Revert old behaviour
This commit is contained in:
parent
6de31605d9
commit
096035ae11
3 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ module Admin
|
||||||
private
|
private
|
||||||
|
|
||||||
def after_sign_in_path_for(_resource_or_scope)
|
def after_sign_in_path_for(_resource_or_scope)
|
||||||
admin_root_path
|
admin_domains_path
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_sign_out_path_for(_resource_or_scope)
|
def after_sign_out_path_for(_resource_or_scope)
|
||||||
|
|
|
@ -17,6 +17,6 @@ class AdminAreaProtectedAreaTest < ApplicationSystemTestCase
|
||||||
sign_in users(:admin)
|
sign_in users(:admin)
|
||||||
visit new_admin_user_session_url
|
visit new_admin_user_session_url
|
||||||
assert_text 'You are already signed in'
|
assert_text 'You are already signed in'
|
||||||
assert_current_path admin_root_path
|
assert_current_path admin_domains_path
|
||||||
end
|
end
|
||||||
end
|
end
|
|
@ -12,7 +12,7 @@ class AdminAreaSignInTest < ApplicationSystemTestCase
|
||||||
click_button 'Sign in'
|
click_button 'Sign in'
|
||||||
|
|
||||||
assert_text 'Signed in successfully'
|
assert_text 'Signed in successfully'
|
||||||
assert_current_path admin_root_path
|
assert_current_path admin_domains_path
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_wrong_password
|
def test_wrong_password
|
||||||
|
@ -39,6 +39,6 @@ class AdminAreaSignInTest < ApplicationSystemTestCase
|
||||||
click_button 'Sign in'
|
click_button 'Sign in'
|
||||||
|
|
||||||
assert_text 'Signed in successfully'
|
assert_text 'Signed in successfully'
|
||||||
assert_current_path admin_root_path
|
assert_current_path admin_domains_path
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Add table
Add a link
Reference in a new issue