lib/rubocop/cop/rspec/capybara/visibility_matcher.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/capybara/visibility_matcher.rb in rubocop-rspec-2.13.0
- old
+ new
@@ -14,10 +14,9 @@
# symbol values, `:all`, `:hidden` or `:visible`.
# Read more in
# https://www.rubydoc.info/gems/capybara/Capybara%2FNode%2FFinders:all[the documentation].
#
# @example
- #
# # bad
# expect(page).to have_selector('.foo', visible: false)
# expect(page).to have_css('.foo', visible: true)
# expect(page).to have_link('my link', visible: false)
#