Commit b36bb44a authored by jplang's avatar jplang

Fixed test error (#19851).

git-svn-id: https://svn.redmine.org/redmine/trunk@14359 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1c1fb6c1
......@@ -66,12 +66,13 @@ class AccountTest < Redmine::IntegrationTest
Redmine::Configuration.stubs(:[]).with('autologin_cookie_name').returns('custom_autologin')
Redmine::Configuration.stubs(:[]).with('autologin_cookie_path').returns('/')
Redmine::Configuration.stubs(:[]).with('autologin_cookie_secure').returns(false)
Redmine::Configuration.stubs(:[]).with('sudo_mode_timeout').returns(15)
with_settings :autologin => '7' do
assert_difference 'Token.count' do
post '/login', :username => 'admin', :password => 'admin', :autologin => 1
assert_response 302
end
assert_response 302
assert cookies['custom_autologin'].present?
token = cookies['custom_autologin']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment