demarches-normaliennes/config/environments
Pierre de La Morinerie 2ce3149d92 test: don't cache classes during tests
When running several individual tests in succession using Spring,
we get an error message:

> zeitwerk error: reloading is disabled because config.cache_classes is true

Caching classes during tests used to be recommended – but Rails 6
now recommands to reload them:

- Spring takes care of the caching for us,
- It makes zeitwerk happy.

See discussion in 65344f254c

A potential downside used to be that when running system tests using
Capybara, each web request would reload the classes, which invalidated
the model objects of the test case. But it seems to be fixed now.
2021-02-16 15:59:35 +01:00
..
development.rb Add carte ign 2020-07-30 16:58:20 +02:00
production.rb introduce smtp_key in order to use 2 different sendinblue keys 2019-11-06 13:34:36 +01:00
test.rb test: don't cache classes during tests 2021-02-16 15:59:35 +01:00