spec/dummy/config/environments/test.rb in listings-0.1.7 vs spec/dummy/config/environments/test.rb in listings-0.1.8
- old
+ new
@@ -7,10 +7,11 @@
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = 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
# Log error messages when you accidentally call methods on nil
config.whiny_nils = true
# Show full error reports and disable caching