lib/rubocop/cop/minitest/no_assertions.rb in rubocop-minitest-0.26.1 vs lib/rubocop/cop/minitest/no_assertions.rb in rubocop-minitest-0.27.0

- old
+ new

@@ -33,16 +33,9 @@ next if assertions_count.positive? add_offense(node.block_type? ? node.loc.expression : node.loc.name) end end - - private - - def assertions_count(node) - base = assertion_method?(node) ? 1 : 0 - base + node.each_child_node.sum { |c| assertions_count(c) } - end end end end end