lib/rubocop/cop/minitest/assert_output.rb in rubocop-minitest-0.28.0 vs lib/rubocop/cop/minitest/assert_output.rb in rubocop-minitest-0.29.0

- old
+ new

@@ -34,11 +34,10 @@ end private def find_test_case(node) - def_ancestor = node.each_ancestor(:def).first - def_ancestor if test_case?(def_ancestor) + node.each_ancestor.find { |ancestor| test_case?(ancestor) } end def references_gvar?(assertion, gvar_name) assertion.each_descendant(:gvar).any? { |d| d.children.first == gvar_name } end