mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-10 16:54:38 -04:00
Rubocop: Capybara/NegationMatcher
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user