]> source.dussan.org Git - redmine.git/commitdiff
Fixed test error (#19851).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 20 Jun 2015 10:57:01 +0000 (10:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 20 Jun 2015 10:57:01 +0000 (10:57 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14359 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/account_test.rb

index 9ff6cc0a36f4de2aeb0b5beefade35533096c753..3b5d0606ca3750f826f7576b2cb27cc2123669b2 100644 (file)
@@ -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']