-
-
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
Capybara/FeatureMethods conflicts with RSpec/DescribeClass in feature specs #538
Comments
@Darhazer I'm not sure. I was going to write a response based on reasoning, but I concluded I need to give this a try and see how it works out. |
Ok, I've changed my code so the cop works for now and tested this. I'm afraid #593 doesn't really help, because I would want to enable all methods, so this would be no different from just disabling the cop for the Ideally, for me, rubocop-rspec would only allow the regular rspec methods in 'regular' specs, and only allow the feature methods in feature test. |
Well, I guess you have to add the features spec folder to |
@Darhazer Yes, that's what I did. An alternative for users who want the FeatureMethods cop enabled is to disable DescribeClass for the features spec folder. |
I am closing this issue, since the RSpec/Capybara/FeatureMethods cop was removed in #1876 / v3.0.0. |
rubocop-rspec should support rspec-rails' feature specs, however:
The following gives a
RSpec/DescribeClass
offense:The following gives a Capybara/FeatureMethods offense:
The text was updated successfully, but these errors were encountered: