From e4e0cb5d47ab4b030ed59cf983031b3189e72d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 4 Mar 2024 05:08:33 +0100 Subject: [PATCH] Don't use spring in the test environment Spring now (since version 3, I think) requires `config.cache_classes = false` in order to work. However, that means that tests would be slower for developers who don't use spring (like me). I'd personally vote for removing spring completely (Rails removed it as a default installation option in August 2021 [1]), but for now we're keeping it for backwards compatibility. [1] See pull request 42997 in https://github.com/rails/rails --- Gemfile | 3 +-- Gemfile.lock | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index 8e55e57da..02a34eb31 100644 --- a/Gemfile +++ b/Gemfile @@ -77,8 +77,6 @@ group :development, :test do gem "knapsack_pro", "~> 5.7.0" gem "launchy", "~> 2.5.2" gem "letter_opener_web", "~> 2.0.0" - gem "spring", "~> 4.1.3" - gem "spring-commands-rspec", "~> 1.0.4" end group :test do @@ -114,6 +112,7 @@ group :development do gem "rubocop-rspec", "~> 2.27.0", require: false gem "rvm1-capistrano3", "~> 1.4.0", require: false gem "scss_lint", "~> 0.60.0", require: false + gem "spring", "~> 4.1.3" gem "web-console", "~> 4.2.1" end diff --git a/Gemfile.lock b/Gemfile.lock index b290c4835..5b57dae17 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -616,8 +616,6 @@ GEM coffee-rails socksify (1.7.1) spring (4.1.3) - spring-commands-rspec (1.0.4) - spring (>= 0.9.1) sprockets (4.2.1) concurrent-ruby (~> 1.0) rack (>= 2.2.4, < 4) @@ -782,7 +780,6 @@ DEPENDENCIES sitemap_generator (~> 6.3.0) social-share-button (~> 1.2.4) spring (~> 4.1.3) - spring-commands-rspec (~> 1.0.4) sprockets (~> 4.2.1) turbolinks (~> 5.2.1) turnout (~> 2.5.0)