Add formula check for crufy SourceForge URLs.
This commit is contained in:
parent
a309403d8a
commit
3c47f7918b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user