-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Misunderstanding with Capybara/NegationMatcher #57
Comments
@ydah how up-to-date is the rspec style guide really? That rule may stem from a time when |
@mvz it might be significantly outdated. I maintain it, but I’m not an expert in Capybara, so most of Capybara-related guidelines are inherited from older guides. I appreciate if you could contribute and update the guide. |
Maybe we should extract factory_bot and capybara guidelines from rspec-style-guide? |
There are not enough guidelines for Capybara/FB now. But if someone is up to create such a guide, I’d be happy to move existing guidelines there. |
Though the default was changed in rubocop/rubocop-capybara#57, there is some confusion around desired behavior and I think this reads better.
Actual behavior
The default behavior of the
rubocop-capybara
is inconsistent with the rspec style guide.Reference 1: https://rspec.rubystyle.guide/#capybara-negative-selectors
Reference 2: https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaranegationmatcher
Expected behavior
The rspec style guide will be corrected.
The text was updated successfully, but these errors were encountered: