diff options
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/sudo_mode_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb index 9fbbfd725..0c7de64e0 100644 --- a/test/integration/sudo_mode_test.rb +++ b/test/integration/sudo_mode_test.rb @@ -259,6 +259,14 @@ class SudoModeTest < Redmine::IntegrationTest end end + def test_sudo_mode_should_include_cache_control_no_store + log_user("admin", "admin") + expire_sudo_mode! + get '/settings' + assert_response :success + assert_includes @response.headers['Cache-Control'], 'no-store' + end + private # sudo mode is active after sign, let it expire by advancing the time |