lib/rubocop/cop/rspec/describe_class.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/describe_class.rb in rubocop-rspec-2.3.0

- old
+ new

@@ -38,17 +38,20 @@ include TopLevelGroup MSG = 'The first argument to describe should be ' \ 'the class or module being tested.' + # @!method example_group_with_ignored_metadata?(node) def_node_matcher :example_group_with_ignored_metadata?, <<~PATTERN (send #rspec? :describe ... (hash <#ignored_metadata? ...>)) PATTERN + # @!method not_a_const_described(node) def_node_matcher :not_a_const_described, <<~PATTERN (send #rspec? :describe $[!const !#string_constant?] ...) PATTERN + # @!method sym_pair(node) def_node_matcher :sym_pair, <<~PATTERN (pair $sym $sym) PATTERN def on_top_level_group(node)