rubocop / rubocop-capybara

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

Fix a false negative for `Capybara/CurrentPathExpectation` when using `match` #18

Closed ydah closed 1 year ago

ydah commented 1 year ago

This PR is fix a false negative for Capybara/CurrentPathExpectation when using match.

expect(page.current_path).to match("string/" \
                                   "foo/")

expect(page.current_path).to match(`pwd`)

Before submitting the PR make sure the following are checked:

ydah commented 1 year ago

[memo] need merge https://github.com/rubocop/rubocop-capybara/pull/17