lib/rubocop/cop/minitest/no_assertions.rb in rubocop-minitest-0.28.0 vs lib/rubocop/cop/minitest/no_assertions.rb in rubocop-minitest-0.29.0
- old
+ new
@@ -30,10 +30,10 @@
test_cases(class_node).each do |node|
assertions_count = assertions_count(node)
next if assertions_count.positive?
- add_offense(node.block_type? ? node.loc.expression : node.loc.name)
+ add_offense(node.block_type? ? node.source_range : node.loc.name)
end
end
end
end
end