demarches-normaliennes/config
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
..
environments test: don't cache classes during tests 2021-02-16 15:59:35 +01:00
initializers Adjust sentry sample rate 2021-02-12 11:35:58 +01:00
locales disable france connect authentication for admin and instructeurs 2021-02-10 18:13:47 +01:00
webpack Improve the mapbox-gl support detection for older browsers 2020-04-09 11:01:20 +02:00
application.rb config: enable zeitwerk 2021-02-11 12:30:43 +01:00
application_name.rb ajout du nom d'application tot au demarrage 2020-07-23 16:16:36 +02:00
boot.rb Bump development gems 2018-03-06 16:17:22 +01:00
brakeman.ignore update brakeman 2020-12-17 10:51:09 +01:00
cable.yml Stop using staging environement 2018-08-29 11:22:56 +02:00
database.yml config: fix spring randomly crashing in the pg gem 2020-05-25 09:23:41 +00:00
deploy.rb fix deploy i_am_a_worker_test 2020-12-11 09:50:17 +01:00
env.example Add api education adapter and job 2021-01-14 17:57:48 +01:00
env.example.optional allow email footer logo to be configured in .env file 2021-02-09 09:39:02 +01:00
environment.rb Rails app:update 2020-07-07 18:03:56 +02:00
i18n-tasks.yml unused locales clean-up 2021-02-04 12:15:13 +01:00
puma.rb Puma: change config to enable cluster mode in production 2019-03-18 11:40:13 +01:00
routes.rb make and expert notifiable (controller and routes) 2021-02-16 09:46:18 +00:00
secrets.yml Add api education adapter and job 2021-01-14 17:57:48 +01:00
skylight.yml [ENV] Add skylight conf 2018-08-23 15:55:31 +02:00
spring.rb Rails app:update 2020-07-07 18:03:56 +02:00
storage.yml fix catalog v3 2020-06-19 14:20:32 +02:00
webpacker.yml Update webpacker and replace vue with react 2019-04-03 14:38:07 +02:00