lib/rubocop/rspec/top_level_group.rb in rubocop-rspec-1.43.1 vs lib/rubocop/rspec/top_level_group.rb in rubocop-rspec-1.43.2
- old
+ new
@@ -14,11 +14,11 @@
super
return unless root_node
top_level_groups.each do |node|
- example_group?(node, &method(:on_top_level_example_group))
+ on_top_level_example_group(node) if example_group?(node)
on_top_level_group(node)
end
end
def top_level_groups
@@ -27,12 +27,12 @@
end
private
# Dummy methods to be overridden in the consumer
- def on_top_level_example_group; end
+ def on_top_level_example_group(_node); end
- def on_top_level_group; end
+ def on_top_level_group(_node); end
def top_level_group?(node)
top_level_groups.include?(node)
end