提交 26c6ecb2 编写于 作者: J Justin Collins

Make sure test apps report no errors

上级 61ff1878
......@@ -85,6 +85,10 @@ module BrakemanTester::CheckExpected
assert_equal number, warnings.length, "Expected #{number} #{type} warnings, but found #{warnings.length}"
end
end
def test_zero_errors
assert_equal 0, report[:errors].length
end
end
Dir.glob "#{TEST_PATH}/tests/*.rb" do |file|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册