spec/dummy/config/environments/test.rb in tb_blog-1.3.5 vs spec/dummy/config/environments/test.rb in tb_blog-1.4.beta1
- old
+ new
@@ -7,10 +7,10 @@
# 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.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false