Add and apply Capybara/NegationMatcher rubocop rule

This rule was added in rubocop-rspec 2.14.0. We were already following
it most of the time.
This commit is contained in:
Javi Martín
2023-08-29 19:56:09 +02:00
parent c4e32ea528
commit 2d4ff86837
2 changed files with 6 additions and 3 deletions

View File

@@ -483,6 +483,9 @@ RSpec/Capybara/FeatureMethods:
- scenario - scenario
- xscenario - xscenario
RSpec/Capybara/NegationMatcher:
Enabled: true
RSpec/Capybara/VisibilityMatcher: RSpec/Capybara/VisibilityMatcher:
Enabled: true Enabled: true

View File

@@ -273,9 +273,9 @@ describe "Internal valuation comments on Budget::Investments" do
visit valuation_budget_budget_investment_path(budget, investment) visit valuation_budget_budget_investment_path(budget, investment)
expect(page).to have_css(".comment.comment.comment.comment.comment.comment.comment.comment") expect(page).to have_css(".comment.comment.comment.comment.comment.comment.comment.comment")
expect(page).to have_no_css(".comment-votes") expect(page).not_to have_css(".comment-votes")
expect(page).to have_no_css(".js-flag-actions") expect(page).not_to have_css(".js-flag-actions")
expect(page).to have_no_css(".moderation-actions") expect(page).not_to have_css(".moderation-actions")
end end
end end