lib/rubocop/cop/rspec/describe_class.rb in rubocop-rspec-1.25.1 vs lib/rubocop/cop/rspec/describe_class.rb in rubocop-rspec-1.26.0

- old
+ new

@@ -37,12 +37,10 @@ (pair (sym :type) (sym {:request :feature :system :routing :view})) PATTERN - def_node_matcher :shared_group?, <<-PATTERN - (block (send {(const nil? :RSpec) nil?} #{SharedGroups::ALL.node_pattern_union} ...) ...) - PATTERN + def_node_matcher :shared_group?, SharedGroups::ALL.block_pattern def on_top_level_describe(node, args) return if shared_group?(root_node) return if valid_describe?(node)