-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
False positive in Rails/DynamicFindBy #778
Comments
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Sep 21, 2022
Fixes rubocop#778. This PR fixes a false positive for `Rails/DynamicFindBy` when using `page.find_by_id` as a Capybara testing API. This default setting emphasizes suppressing false positive over false negative.
9 tasks
koic
added a commit
to koic/rubocop-rails
that referenced
this issue
Sep 21, 2022
Fixes rubocop#778. This PR fixes a false positive for `Rails/DynamicFindBy` when using `page.find_by_id` as a Capybara testing API. This default setting emphasizes suppressing false positive over false negative.
koic
added a commit
that referenced
this issue
Sep 30, 2022
…c_find_by [Fix #778] Fix a false positive for `Rails/DynamicFindBy`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
no violation
Actual behavior
page
is aCapybara::Session
, so find_by_id so it's not related to the ActiveRecord stuff that rubocop is actually looking forSteps to reproduce the problem
a Capybara test with
page.find_by_id("my_dom_id").click
RuboCop version
The text was updated successfully, but these errors were encountered: