lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-1.33.0 vs lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-1.34.0

- old
+ new

@@ -27,10 +27,10 @@ def on_block(node) return unless example_group?(node) analyzable_hooks(node).each do |repeated_hook| - add_offense(repeated_hook, location: :expression) + add_offense(repeated_hook) end end def analyzable_hooks(node) RuboCop::RSpec::ExampleGroup.new(node)