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
This commit is contained in:
Javi Martín
2024-03-04 05:08:33 +01:00
parent c87f7a7e9a
commit e4e0cb5d47
2 changed files with 1 additions and 5 deletions

View File

@@ -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)