diff --git a/.rubocop.yml b/.rubocop.yml index 997569e1..da7502a2 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -181,3 +181,6 @@ RSpec/PredicateMatcher: RSpec/Capybara/FeatureMethods: Enabled: false + +RSpec/Capybara/NegationMatcher: + Enabled: false diff --git a/lib/capybara/spec/session/has_css_spec.rb b/lib/capybara/spec/session/has_css_spec.rb index 5831cea2..b9eb03c0 100644 --- a/lib/capybara/spec/session/has_css_spec.rb +++ b/lib/capybara/spec/session/has_css_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -# rubocop:disable RSpec/Capybara/SpecificMatcher - Capybara::SpecHelper.spec '#has_css?' do before do @session.visit('/with_html') @@ -375,5 +373,3 @@ Capybara::SpecHelper.spec '#has_no_css?' do end end end - -# rubocop:enable RSpec/Capybara/SpecificMatcher