mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-26 17:17:14 +00:00
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
This commit is contained in:
parent
ca099daae2
commit
3498a6a624
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user