Add formula test that looks for commented-out template code.

This commit is contained in:
Adam Vandenberg 2009-10-07 15:33:25 -07:00
parent 5a48d297f2
commit 1e5623c300

View File

@ -41,3 +41,12 @@ class FormulaNames <Test::Unit::TestCase
end
end
end
class CommentedTemplateCode <Test::Unit::TestCase
def test_for_commented_out_cmake
Dir["#{HOMEBREW_PREFIX}/Library/Formula/*.rb"].each do |f|
result = `grep "# depends_on 'cmake'" "#{f}"`.strip
assert_equal('', result, "Commented template code still in #{f}")
end
end
end