From d5d9a8249db695b69a14d70162090434ce6fbd7f Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Thu, 11 Jan 2024 14:44:10 +0100 Subject: [PATCH] Do not eager load in tests Fixes an issue with turbo-rails and Rails 7.1 --- spec/dummy/config/environments/test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/dummy/config/environments/test.rb b/spec/dummy/config/environments/test.rb index e57c036..04f8d01 100644 --- a/spec/dummy/config/environments/test.rb +++ b/spec/dummy/config/environments/test.rb @@ -14,7 +14,7 @@ # Eager loading loads your whole application. When running a single test locally, # this probably isn't necessary. It's a good idea to do in a continuous integration # system, or in some way before deploying your code. - config.eager_load = ENV["CI"].present? + config.eager_load = false # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true