rubocop / rubocop-capybara

Code style checking for Capybara files.
https://docs.rubocop.org/rubocop-capybara
MIT License
41 stars 8 forks source link

Fix an incorrect autocorrect for `Capybara/PathExpectation` #17

Closed ydah closed 1 year ago

ydah commented 1 year ago

This PR is fix an incorrect autocorrect for Capybara/PathExpectation.

-expect(page).to have_current_path `pwd`
+expect(page).to have_current_path `pwd`, ignore_query: true

expect(page).to have_current_path "/callback" \
-                            "/foo"
+                            "/foo", ignore_query: true

Before submitting the PR make sure the following are checked: