lib/rubocop/cop/rspec/overwriting_setup.rb in rubocop-rspec-1.14.0 vs lib/rubocop/cop/rspec/overwriting_setup.rb in rubocop-rspec-1.15.0

- old
+ new

@@ -27,10 +27,10 @@ def_node_matcher :setup?, <<-PATTERN (block (send nil {:let :let! :subject} (sym $_)) ...) PATTERN def on_block(node) - return unless example_group?(node) + return unless example_group_with_body?(node) _describe, _args, body = *node find_duplicates(body) do |duplicate, name| add_offense(duplicate, :expression, format(MSG, name: name))