spec/dummy/config/environments/test.rb in lines-engine-1.2 vs spec/dummy/config/environments/test.rb in lines-engine-1.2.1
- old
+ new
@@ -12,11 +12,13 @@
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false
# Configure static asset server for tests with Cache-Control for performance.
# config.serve_static_assets = true # deprecated
- config.serve_static_files = true
- config.static_cache_control = 'public, max-age=3600'
+ #config.serve_static_files = true
+ config.public_file_server.enabled = true
+ #config.static_cache_control = 'public, max-age=3600'
+ config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.active_record.raise_in_transactional_callbacks = true