test/dummy/config/environments/test.rb in buoys-0.4.0 vs test/dummy/config/environments/test.rb in buoys-0.5.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 file server for tests with Cache-Control for performance. - config.serve_static_files = true - config.static_cache_control = 'public, max-age=3600' + if Gem::Version.new(Rails.version) >= Gem::Version.new('5.0.0') + config.public_file_server.enabled = true + config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } + else + config.serve_static_files = true + config.static_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