rails / spring

Rails application preloader
MIT License
2.81k stars 341 forks source link

Don't load spring gem in bin/spring when spring is disabled #685

Closed micahtessler closed 9 months ago

micahtessler commented 2 years ago

This disables the loading of the spring gem in bin/spring when spring id disabled.

This code fix addresses a bug that occurs under the following circumstances:

With the additional check for SPRING_DISABLED env variable, rails tests do not attempt to load spring when the env variable is set.