From 4c0ac6d29e1a6799ce5c01a68ffd2a4319a1e88d Mon Sep 17 00:00:00 2001 From: Sam Davies Date: Thu, 21 Jan 2016 08:49:16 -0300 Subject: [PATCH] Fix deprecation warnings for Rails 5.0 --- test/dummy/config/environments/production.rb | 2 +- test/dummy/config/environments/test.rb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/dummy/config/environments/production.rb b/test/dummy/config/environments/production.rb index 56e3066..7e44916 100644 --- a/test/dummy/config/environments/production.rb +++ b/test/dummy/config/environments/production.rb @@ -9,7 +9,7 @@ config.action_controller.perform_caching = true # Disable Rails's static asset server (Apache or nginx will already do this) - config.serve_static_assets = false + config.serve_static_files = false # Compress JavaScripts and CSS config.assets.compress = true diff --git a/test/dummy/config/environments/test.rb b/test/dummy/config/environments/test.rb index c9517b8..20cc973 100644 --- a/test/dummy/config/environments/test.rb +++ b/test/dummy/config/environments/test.rb @@ -9,7 +9,7 @@ config.cache_classes = true # Configure static asset server for tests with Cache-Control for performance - config.serve_static_assets = true + config.serve_static_files = true config.static_cache_control = "public, max-age=3600" # Log error messages when you accidentally call methods on nil @@ -38,4 +38,6 @@ # Required for Rails >= 4.2 config.eager_load = true + + config.active_support.test_order = :random end