diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-20 10:57:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-20 10:57:01 +0000 |
commit | 1e674c903e6320e3ab62a1c54b1d6e7dac1c15d0 (patch) | |
tree | d80e5df5a0a6c4e2648e87b47c3a71cd1bf207a5 /test/integration | |
parent | 752c414e8abdcc20ffc845d7df931af11bb8d801 (diff) | |
download | redmine-1e674c903e6320e3ab62a1c54b1d6e7dac1c15d0.tar.gz redmine-1e674c903e6320e3ab62a1c54b1d6e7dac1c15d0.zip |
Fixed test error (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/account_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb index 9ff6cc0a3..3b5d0606c 100644 --- a/test/integration/account_test.rb +++ b/test/integration/account_test.rb @@ -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'] |