lib/rubocop/cop/rspec/capybara/visibility_matcher.rb in rubocop-rspec-2.15.0 vs lib/rubocop/cop/rspec/capybara/visibility_matcher.rb in rubocop-rspec-2.16.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 < Base
+ class VisibilityMatcher < ::RuboCop::Cop::Base
MSG_FALSE = 'Use `:all` or `:hidden` instead of `false`.'
MSG_TRUE = 'Use `:visible` instead of `true`.'
CAPYBARA_MATCHER_METHODS = %w[
button
checked_field