From 33f624e835cd5ea833d4e5bd8d0fd9db24da4910 Mon Sep 17 00:00:00 2001 From: Santiago Rodriguez <46354312+santiagorodriguez96@users.noreply.github.com> Date: Thu, 17 Oct 2024 15:39:41 -0300 Subject: [PATCH] chore: fix cops with the wrong namespace As part of the PR for adding support for Ruby 3.3 (#205) we bumped the `rubocop-rspec` dependency to `~> 2.26`, which depends on `rubocop-capybara` `~> 2.17` and `rubocop-factory_bot` `~> 2.22`. On those versions, the `RSpec` namespace was removed from their cops hence a warning was being logged when running `rubocop` with the last version of this gem. Related PRs: - https://github.com/rubocop/rubocop-factory_bot/commit/812771eb33453e40f51c7a1cc993d7c8b6f5b33a - https://github.com/rubocop/rubocop-capybara/commit/e36f30457b6a49d1e04847d2337186dc0d03a435 --- rubocop-airbnb/config/rubocop-rspec.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rubocop-airbnb/config/rubocop-rspec.yml b/rubocop-airbnb/config/rubocop-rspec.yml index 0503b7d..663c033 100644 --- a/rubocop-airbnb/config/rubocop-rspec.yml +++ b/rubocop-airbnb/config/rubocop-rspec.yml @@ -309,7 +309,7 @@ RSpec/VoidExpect: Description: This cop checks void `expect()`. Enabled: false -RSpec/Capybara/CurrentPathExpectation: +Capybara/CurrentPathExpectation: Description: Checks that no expectations are set on Capybara's `current_path`. Enabled: false @@ -317,10 +317,10 @@ RSpec/Capybara/FeatureMethods: Description: Checks for consistent method usage in feature specs. Enabled: false -RSpec/FactoryBot/AttributeDefinedStatically: +FactoryBot/AttributeDefinedStatically: Description: Always declare attribute values as blocks. Enabled: false -RSpec/FactoryBot/CreateList: +FactoryBot/CreateList: Description: Checks for create_list usage. Enabled: true