lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-2.15.0 vs lib/rubocop/cop/rspec/scattered_setup.rb in rubocop-rspec-2.16.0
- old
+ new
@@ -39,9 +39,11 @@
add_offense(occurrence, message: message)
end
end
end
+ private
+
def repeated_hooks(node)
hooks = RuboCop::RSpec::ExampleGroup.new(node)
.hooks
.select(&:knowable_scope?)
.group_by { |hook| [hook.name, hook.scope, hook.metadata] }