lib/rubocop/cop/rspec/leaky_constant_declaration.rb in rubocop-rspec-1.40.0 vs lib/rubocop/cop/rspec/leaky_constant_declaration.rb in rubocop-rspec-1.41.0

- old
+ new

@@ -117,14 +117,11 @@ end private def inside_describe_block?(node) - node.each_ancestor(:block).any?(&method(:in_example_or_shared_group?)) + node.each_ancestor(:block).any?(&method(:spec_group?)) end - - def_node_matcher :in_example_or_shared_group?, - (ExampleGroups::ALL + SharedGroups::ALL).block_pattern end end end end