@@ -66,12 +66,13 class AccountTest < Redmine::IntegrationTest | |||||
66 | Redmine::Configuration.stubs(:[]).with('autologin_cookie_name').returns('custom_autologin') |
|
66 | Redmine::Configuration.stubs(:[]).with('autologin_cookie_name').returns('custom_autologin') | |
67 | Redmine::Configuration.stubs(:[]).with('autologin_cookie_path').returns('/') |
|
67 | Redmine::Configuration.stubs(:[]).with('autologin_cookie_path').returns('/') | |
68 | Redmine::Configuration.stubs(:[]).with('autologin_cookie_secure').returns(false) |
|
68 | Redmine::Configuration.stubs(:[]).with('autologin_cookie_secure').returns(false) | |
|
69 | Redmine::Configuration.stubs(:[]).with('sudo_mode_timeout').returns(15) | |||
69 |
|
70 | |||
70 | with_settings :autologin => '7' do |
|
71 | with_settings :autologin => '7' do | |
71 | assert_difference 'Token.count' do |
|
72 | assert_difference 'Token.count' do | |
72 | post '/login', :username => 'admin', :password => 'admin', :autologin => 1 |
|
73 | post '/login', :username => 'admin', :password => 'admin', :autologin => 1 | |
|
74 | assert_response 302 | |||
73 | end |
|
75 | end | |
74 | assert_response 302 |
|
|||
75 | assert cookies['custom_autologin'].present? |
|
76 | assert cookies['custom_autologin'].present? | |
76 | token = cookies['custom_autologin'] |
|
77 | token = cookies['custom_autologin'] | |
77 |
|
78 |
General Comments 0
You need to be logged in to leave comments.
Login now