From d54f534aa9787e3d81cb52e7259aa8eaff711f30 Mon Sep 17 00:00:00 2001 From: Timothy Williams Date: Fri, 29 May 2026 11:41:37 -0400 Subject: [PATCH] Rename Capybara/CurrentPathExpectation configuration 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) ``` --- rubocop-airbnb/config/rubocop-capybara.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rubocop-airbnb/config/rubocop-capybara.yml b/rubocop-airbnb/config/rubocop-capybara.yml index 208feba..db385ae 100644 --- a/rubocop-airbnb/config/rubocop-capybara.yml +++ b/rubocop-airbnb/config/rubocop-capybara.yml @@ -1,6 +1,6 @@ plugins: - rubocop-capybara -Capybara/CurrentPathExpectation: +Capybara/RSpec/CurrentPathExpectation: Description: Checks that no expectations are set on Capybara's `current_path`. Enabled: false