Rubocop: Capybara/NegationMatcher

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

No files matched your search

-8
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:
+1 -1
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