lib/rubocop/rspec/example_group.rb in rubocop-rspec-2.18.1 vs lib/rubocop/rspec/example_group.rb in rubocop-rspec-2.19.0

- old
+ new

@@ -8,17 +8,15 @@ # # Detect if the node is an example group or shared example # # Selectors which indicate that we should stop searching # - def_node_matcher :scope_change?, - block_pattern(<<~PATTERN) - { - #SharedGroups.all - #ExampleGroups.all - #Includes.all - } - PATTERN + def_node_matcher :scope_change?, <<~PATTERN + (block { + (send #rspec? {#SharedGroups.all #ExampleGroups.all} ...) + (send nil? #Includes.all ...) + } ...) + PATTERN def lets find_all_in_scope(node, :let?) end