spec/dummy/config/environments/test.rb in wine_bouncer-1.0.2 vs spec/dummy/config/environments/test.rb in wine_bouncer-1.0.3

- old
+ new

@@ -13,11 +13,12 @@ # 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 = 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' if Rails::VERSION::MAJOR < 5 + + config.public_file_server.enabled = true if Rails::VERSION::MAJOR >= 5 config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } if Rails::VERSION::MAJOR >= 5 # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false