From d270cad4df142690a781ee411c956faf3f112f6b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Apr 2026 15:11:27 +0000 Subject: [PATCH 1/2] Bump rubocop-capybara from 2.22.1 to 2.23.0 in the bundler group Bumps the bundler group with 1 update: [rubocop-capybara](https://github.com/rubocop/rubocop-capybara). Updates `rubocop-capybara` from 2.22.1 to 2.23.0 - [Release notes](https://github.com/rubocop/rubocop-capybara/releases) - [Changelog](https://github.com/rubocop/rubocop-capybara/blob/main/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop-capybara/compare/v2.22.1...v2.23.0) --- updated-dependencies: - dependency-name: rubocop-capybara dependency-version: 2.23.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: bundler ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 729b5fa..b9b242c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -118,7 +118,7 @@ GEM prism (>= 1.3.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.19.3) + json (2.19.4) language_server-protocol (3.17.0.5) lint_roller (1.1.0) logger (1.7.0) @@ -260,9 +260,9 @@ GEM rubocop-ast (1.49.1) parser (>= 3.3.7.2) prism (~> 1.7) - rubocop-capybara (2.22.1) + rubocop-capybara (2.23.0) lint_roller (~> 1.1) - rubocop (~> 1.72, >= 1.72.1) + rubocop (~> 1.81) rubocop-packaging (0.6.0) lint_roller (~> 1.1.0) rubocop (>= 1.72.1, < 2.0) From 249dd75a2757111489c803cc4a3f60098b1ac400 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Thu, 30 Apr 2026 18:52:02 +0200 Subject: [PATCH 2/2] Fix RuboCop config --- .rubocop.yml | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 0bab776..8c7df35 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,43 +17,49 @@ AllCops: Capybara: Enabled: true -Capybara/ClickLinkOrButtonStyle: +Capybara/AssertStyle: Enabled: true -Capybara/CurrentPathExpectation: +Capybara/ClickLinkOrButtonStyle: Enabled: true Capybara/FindAllFirst: Enabled: true -Capybara/MatchStyle: +Capybara/RedundantWithinFind: Enabled: true -Capybara/NegationMatcher: +Capybara/RSpec/CurrentPathExpectation: Enabled: true -Capybara/NegationMatcherAfterVisit: +Capybara/RSpec/HaveContent: Enabled: true -Capybara/RedundantWithinFind: +Capybara/RSpec/HaveSelector: Enabled: true -Capybara/RSpec/HaveSelector: +Capybara/RSpec/MatchStyle: + Enabled: true + +Capybara/RSpec/NegationMatcher: + Enabled: true + +Capybara/RSpec/NegationMatcherAfterVisit: Enabled: true Capybara/RSpec/PredicateMatcher: Enabled: true -Capybara/SpecificActions: +Capybara/RSpec/SpecificFinders: Enabled: true -Capybara/SpecificFinders: +Capybara/RSpec/SpecificMatcher: Enabled: true -Capybara/SpecificMatcher: +Capybara/RSpec/VisibilityMatcher: Enabled: true -Capybara/VisibilityMatcher: +Capybara/SpecificActions: Enabled: true Metrics: @@ -445,6 +451,9 @@ RSpec/LeadingSubject: RSpec/LeakyConstantDeclaration: Enabled: true +RSpec/LeakyLocalVariable: + Enabled: true + RSpec/LetBeforeExamples: Enabled: true @@ -493,6 +502,9 @@ RSpec/NoExpectationExample: RSpec/NotToNot: Enabled: true +RSpec/Output: + Enabled: true + RSpec/OverwritingSetup: Enabled: true