Add formula check for crufy SourceForge URLs.

This commit is contained in:
Adam Vandenberg 2010-02-04 17:29:47 -08:00
parent a309403d8a
commit 3c47f7918b

View File

@ -39,4 +39,12 @@ class WellKnownCodeIssues <Test::Unit::TestCase
assert_equal('', result, "--prefix is incorrectly single-quoted in #{f}")
end
end
def test_for_crufy_sourceforge_url
# Don't specify mirror for SourceForge downloads
Formulary.paths.each do |f|
result = `grep "\?use_mirror=" "#{f}"`.strip
assert_equal('', result, "Remove 'use_mirror' from url for #{f}")
end
end
end