aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-10-07 15:33:25 -0700
committerAdam Vandenberg2009-10-08 17:21:55 -0700
commit0dc89600e3533f0c917b684732e4df288d69357d (patch)
tree1d6deb519c7e9c689af58202d421a038db030d3c /Library
parent7f7cd30cf847ee7a2365d4b102cdd65fd524724d (diff)
downloadhomebrew-0dc89600e3533f0c917b684732e4df288d69357d.tar.bz2
Add formula test that looks for commented-out template code.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/formula_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_test.rb b/Library/Homebrew/formula_test.rb
index d61fa113e..e63b183f4 100755
--- a/Library/Homebrew/formula_test.rb
+++ b/Library/Homebrew/formula_test.rb
@@ -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 \ No newline at end of file