lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-1.19.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, :expression) + add_offense(repeated_hook, location: :expression) end end def analyzable_hooks(node) RuboCop::RSpec::ExampleGroup.new(node)