spec/dummy/config/environments/test.rb in wine_bouncer-0.5.1 vs spec/dummy/config/environments/test.rb in wine_bouncer-1.0.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
Dummy::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
@@ -12,10 +14,11 @@
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = true
# Configure static asset server for tests with Cache-Control for performance.
config.serve_static_assets = true
- config.static_cache_control = 'public, max-age=3600'
+ config.static_cache_control = 'public, max-age=3600' if Rails::VERSION::MAJOR < 5
+ config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } if Rails::VERSION::MAJOR >= 5
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false