lib/rubocop/cop/rspec/describe_method.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/describe_method.rb in rubocop-rspec-2.3.0
- old
+ new
@@ -20,9 +20,10 @@
include TopLevelGroup
MSG = 'The second argument to describe should be the method ' \
"being tested. '#instance' or '.class'."
+ # @!method second_argument(node)
def_node_matcher :second_argument, <<~PATTERN
(block
(send #rspec? :describe _first_argument $(str _) ...) ...
)
PATTERN