spec/dummy/config/environments/test.rb in settingson-1.7.6 vs spec/dummy/config/environments/test.rb in settingson-1.7.7

- old
+ new

@@ -11,11 +11,16 @@ # 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 # Configure static asset server for tests with Cache-Control for performance. - config.serve_static_files = true - config.static_cache_control = 'public, max-age=3600' + if Rails::VERSION::MAJOR < 5 + config.serve_static_files = true + config.static_cache_control = 'public, max-age=3600' + else + config.public_file_server.enabled = true + config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } + end # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false