aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-02-04 17:29:47 -0800
committerAdam Vandenberg2010-02-04 17:29:47 -0800
commit3c47f7918b47377732a26445b27566a226e85831 (patch)
tree71cf81dd853a0c016fbd71c4f9e35cc5fd68920d /Library
parenta309403d8ab3830fc0a02a861c7ccdefedfe4da1 (diff)
downloadbrew-3c47f7918b47377732a26445b27566a226e85831.tar.bz2
Add formula check for crufy SourceForge URLs.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/test/formula_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/formula_test.rb b/Library/Homebrew/test/formula_test.rb
index 71f4ea732..74597972b 100755
--- a/Library/Homebrew/test/formula_test.rb
+++ b/Library/Homebrew/test/formula_test.rb
@@ -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