Skip to content

Commit

Permalink
chore: fix cops with the wrong namespace
Browse files Browse the repository at this point in the history
As part of the PR for adding support for Ruby 3.3 (airbnb#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:
- rubocop/rubocop-factory_bot@812771e
- rubocop/rubocop-capybara@e36f304
  • Loading branch information
santiagorodriguez96 committed Oct 17, 2024
1 parent c53a8a8 commit 33f624e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rubocop-airbnb/config/rubocop-rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,18 +309,18 @@ 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

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

0 comments on commit 33f624e

Please sign in to comment.