lib/rubocop/cop/rspec/capybara/visibility_matcher.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/capybara/visibility_matcher.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -44,13 +44,15 @@
have_content
].freeze
RESTRICT_ON_SEND = CAPYBARA_MATCHER_METHODS
+ # @!method visible_true?(node)
def_node_matcher :visible_true?, <<~PATTERN
(send nil? #capybara_matcher? ... (hash <$(pair (sym :visible) true) ...>))
PATTERN
+ # @!method visible_false?(node)
def_node_matcher :visible_false?, <<~PATTERN
(send nil? #capybara_matcher? ... (hash <$(pair (sym :visible) false) ...>))
PATTERN
def on_send(node)