Skip to content

Rename Capybara/CurrentPathExpectation configuration#218

Open
mitorez wants to merge 1 commit into
airbnb:mainfrom
mitorez:main
Open

Rename Capybara/CurrentPathExpectation configuration#218
mitorez wants to merge 1 commit into
airbnb:mainfrom
mitorez:main

Conversation

@mitorez
Copy link
Copy Markdown

@mitorez mitorez commented May 29, 2026

Closes #211

Rename Capybara/CurrentPathExpectation configuration to Capybara/RSpec/CurrentPathExpectation to resolve the following error with rubocop-airbnb 8.1.0 and rubocop-capybara 2.23.0...

Error: The `Capybara/CurrentPathExpectation` cop has been moved to `Capybara/RSpec/CurrentPathExpectation`.
(obsolete configuration found in /Users/USERNAME/.rbenv/versions/3.2.11/lib/ruby/gems/3.2.0/gems/rubocop-airbnb-8.1.0/config/rubocop-capybara.yml, please update it)

Rename `Capybara/CurrentPathExpectation` configuration to `Capybara/RSpec/CurrentPathExpectation` to resolve the following error with `rubocop-airbnb 8.1.0` and `rubocop-capybara 2.23.0`...
```
Error: The `Capybara/CurrentPathExpectation` cop has been moved to `Capybara/RSpec/CurrentPathExpectation`.
(obsolete configuration found in /Users/USERNAME/.rbenv/versions/3.2.11/lib/ruby/gems/3.2.0/gems/rubocop-airbnb-8.1.0/config/rubocop-capybara.yml, please update it)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warnings about rule namespaces for Capybara and FactoryBot

1 participant