lib/rubocop/cop/capybara/negation_matcher.rb in rubocop-capybara-2.17.1 vs lib/rubocop/cop/capybara/negation_matcher.rb in rubocop-capybara-2.18.0
- old
+ new
@@ -29,10 +29,10 @@
MSG = 'Use `expect(...).%<runner>s %<matcher>s`.'
CAPYBARA_MATCHERS = %w[
selector css xpath text title current_path link button
field checked_field unchecked_field select table
- sibling ancestor
+ sibling ancestor content
].freeze
POSITIVE_MATCHERS =
Set.new(CAPYBARA_MATCHERS) { |element| :"have_#{element}" }.freeze
NEGATIVE_MATCHERS =
Set.new(CAPYBARA_MATCHERS) { |element| :"have_no_#{element}" }