diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-17 13:11:13 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-17 13:11:13 +0000 |
commit | 3498a6a6247612f04f24185bd6175a113d4987b9 (patch) | |
tree | 1890f518a80e3b04c2a09b084da8cb7daa9c9b99 | |
parent | ca099daae2176c27464dfb697c0d0e800d1b565e (diff) | |
download | redmine-3498a6a6247612f04f24185bd6175a113d4987b9.tar.gz redmine-3498a6a6247612f04f24185bd6175a113d4987b9.zip |
use with_settings at AccountControllerOpenidTest#test_login_with_openid_for_existing_non_active_user
git-svn-id: http://svn.redmine.org/redmine/trunk@20664 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/account_controller_openid_test.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/functional/account_controller_openid_test.rb b/test/functional/account_controller_openid_test.rb index 7ed03d00c..1a51fc879 100644 --- a/test/functional/account_controller_openid_test.rb +++ b/test/functional/account_controller_openid_test.rb @@ -62,7 +62,6 @@ class AccountControllerOpenidTest < Redmine::ControllerTest end def test_login_with_openid_for_existing_non_active_user - Setting.self_registration = '2' existing_user = User.new(:firstname => 'Cool', :lastname => 'User', :mail => 'user@somedomain.com', @@ -70,13 +69,12 @@ class AccountControllerOpenidTest < Redmine::ControllerTest :status => User::STATUS_REGISTERED) existing_user.login = 'cool_user' assert existing_user.save! - - post( - :login, - :params => { - :openid_url => existing_user.identity_url - } - ) + with_settings( + :openid => '1', + :self_registration => '2' + ) do + post(:login, :params => {:openid_url => existing_user.identity_url}) + end assert_redirected_to '/login' end |