-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
all_on_start: false option causes rails environment not to load #26
Comments
This is happening whenever a project file gets modified before any spec is loaded, since spec_helper is what loads the environment. I worked around this by adding |
Because not every project will necessarily have a Sorry, but i think your solution is the best it's going to get. |
Thanks for looking into it. Their examples watch for changes in |
Hmm, sorry - i didn't catch that difference. I'll take a closer look when i get a chance. |
My tests run fine when using the standard options, but setting
all_on_start
to false causes the Rails environment not to load.When I run guard and edit a file (in this case an ActiveRecord model), it tells me ActiveRecord is an uninitialized constant:
The text was updated successfully, but these errors were encountered: