lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-2.13.0
- old
+ new
@@ -24,10 +24,10 @@
#
class ScatteredSetup < Base
MSG = 'Do not define multiple `%<hook_name>s` hooks in the same ' \
'example group (also defined on %<lines>s).'
- def on_block(node)
+ def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
return unless example_group?(node)
repeated_hooks(node).each do |occurrences|
lines = occurrences.map(&:first_line)