-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
Don't require all spec/support
files by default
#92
Comments
Is this specific to
|
Oh, interesting. It seems RSpec own suite started using that in rspec/rspec-core@82bf93e (March 2010), which was far before rspec/rspec-rails#1137. I suspect many most non-Rails projects don't do this, but I think it would be fine to have this advice apply for everywhere. |
I think this advice really only makes sense if you have a large number of support files. The trouble with selectively Therefore, you may not notice that you've missed the appropriate |
Fair point. I'll think about how to phrase it. |
There's also
Together with
it provides a quite elegant (though magical) way to lazy-load support dependencies. |
This is specific to rspec-rails:
The generator originally created a helper which required everything in
support/**/*.rb
. This was changed in rspec/rspec-rails#1137 but I still find many projects which require all the files, either because it's an old project, or because the advice was ignored.The text was updated successfully, but these errors were encountered: