lib/rubocop/cop/rspec/capybara/visibility_matcher.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/capybara/visibility_matcher.rb in rubocop-rspec-1.43.0
- old
+ new
@@ -24,10 +24,10 @@
# # good
# expect(page).to have_selector('.foo', visible: :visible)
# expect(page).to have_css('.foo', visible: :all)
# expect(page).to have_link('my link', visible: :hidden)
#
- class VisibilityMatcher < Cop
+ class VisibilityMatcher < Base
MSG_FALSE = 'Use `:all` or `:hidden` instead of `false`.'
MSG_TRUE = 'Use `:visible` instead of `true`.'
CAPYBARA_MATCHER_METHODS = %i[
have_selector
have_css