From f95f2557e38305c8cf5f385034253e2344887351 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Thu, 12 Oct 2017 06:37:06 +0300 Subject: [PATCH] Improve test env config --- config/environments/test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/test.rb b/config/environments/test.rb index 1220a8d42..b5b7c07d9 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -5,12 +5,12 @@ Rails.application.configure do # test suite. You never need to work with it otherwise. Remember that # your test database is "scratch space" for the test suite and is wiped # and recreated between test runs. Don't rely on the data there! - config.cache_classes = false + config.cache_classes = true # Do not eager load code on boot. This avoids loading your whole application # 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 + config.eager_load = true # Configure static asset server for tests with Cache-Control for performance. config.serve_static_files = true