diff options
Diffstat (limited to 'config/environments/test.rb')
-rw-r--r-- | config/environments/test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index f3a7f894b73..4e359cd308c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -17,9 +17,7 @@ Rails.application.configure do # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! - - # Code doesn't change in CI so we don't need code-reloading - config.cache_classes = !!ENV['CI'] + config.cache_classes = Gitlab::Utils.to_boolean(ENV['CACHE_CLASSES'], default: false) # Configure static asset server for tests with Cache-Control for performance config.assets.compile = false if ENV['CI'] |