`const_get': uninitialized constant [class] (NameError)` after file save in Docker with Spring `const_get': uninitialized constant [class] (NameError)` after file save in Docker with Spring docker docker

`const_get': uninitialized constant [class] (NameError)` after file save in Docker with Spring


This issue is discussed here: rails/spring#519

The workaround, as hinted in that issue, is to disable eager loading.

In config/environments/test.rb you change;

config.eager_load = true

to

config.eager_load = false