Rubocop: Capybara/NegationMatcher

This commit is contained in:
Daniel O'Connor
2026-04-23 12:30:06 +00:00
parent 400db178e4
commit c1f171b09e
2 changed files with 1 additions and 9 deletions

View File

@@ -13,14 +13,6 @@ Bundler/OrderedGems:
Exclude:
- 'Gemfile'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: have_no, not_to
Capybara/NegationMatcher:
Exclude:
- 'spec/features/admin/reverting_crops_spec.rb'
# Offense count: 19
Capybara/NegationMatcherAfterVisit:
Exclude:

View File

@@ -32,7 +32,7 @@ RSpec.feature 'Reverting crops' do
scenario 'Member cannot revert a crop' do
visit admin_crops_path
expect(page).not_to have_link('Revert')
expect(page).to have_no_link('Revert')
end
end
end