summaryrefslogtreecommitdiffstats
path: root/test/functional/account_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/account_controller_test.rb')
-rw-r--r--test/functional/account_controller_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb
index 31ba88fb5..1dd14a24a 100644
--- a/test/functional/account_controller_test.rb
+++ b/test/functional/account_controller_test.rb
@@ -27,6 +27,7 @@ class AccountControllerTest < Redmine::ControllerTest
def test_get_login
get :login
assert_response :success
+ assert_includes @response.headers['Cache-Control'], 'no-store'
assert_select 'input[name=username][autocomplete=username]'
assert_select 'input[name=password][autocomplete=current-password]'
@@ -521,6 +522,7 @@ class AccountControllerTest < Redmine::ControllerTest
get :lost_password
assert_response :success
+ assert_includes @response.headers['Cache-Control'], 'no-store'
assert_select 'input[type=hidden][name=token][value=?]', token.value
end