-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Checking for necessary require on _spec files #612
Comments
Hi @danielnc. There's no cop that I know of that would enforce that, but you might consider adding rspec configuration to your project so that you don't have to. If you add a Sample
|
Does the rspec configuration suggestion work for you, @danielnc? I'm closing this for the moment as I'm currently not in favor of having a cop for something like this, but if you don't think |
I came looking for this too; thanks for the (much better) solution of configuring it via the On the back of this, I had some thoughts;
|
We want to add rubocop check for our rails _spec files that will check if the necessary
require "spec_helper" or require "rails_helper" exists on files
This is usually not a problem if you run the entire rails spec suite but could be if one file does not have the specific require and you run that individually
How can I accomplish that?
Is this a new feature or rubocop-rspec already supports this? I couldn't find any information
The text was updated successfully, but these errors were encountered: