spec/dummy/config/environments/test.rb in frikandel-2.1.0 vs spec/dummy/config/environments/test.rb in frikandel-2.2.0

- 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_assets = true - config.static_cache_control = "public, max-age=3600" + if Dummy::RAILS_GEM_VERSION < Gem::Version.new('5.0.0') + config.serve_static_assets = 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