aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testball.rb
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-09-16 11:04:12 -0700
committerCharlie Sharpsteen2011-09-19 09:25:02 -0700
commit3ada407922eb5babbf58629aedbc70a3f2ca5450 (patch)
tree465a819c675983ff8e3122c302768ea7d8c8d8ed /Library/Homebrew/test/testball.rb
parent9d19506ee9d79d35eec5063ee1e971583fe79460 (diff)
downloadbrew-3ada407922eb5babbf58629aedbc70a3f2ca5450.tar.bz2
mirror support: Add test
Diffstat (limited to 'Library/Homebrew/test/testball.rb')
-rw-r--r--Library/Homebrew/test/testball.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb
index 97a161e1c..aae18115c 100644
--- a/Library/Homebrew/test/testball.rb
+++ b/Library/Homebrew/test/testball.rb
@@ -13,6 +13,18 @@ class TestBall <Formula
end
end
+class TestBallWithMirror < Formula
+ # `url` is bogus---curl should fail to download it. The mirror is fine
+ # though.
+ url "file:///#{TEST_FOLDER}/bad_url/testball-0.1.tbz"
+ mirror "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
+
+ def initialize name=nil
+ @homepage = 'http://example.com/'
+ super "testballwithmirror"
+ end
+end
+
class ConfigureFails <Formula
# name parameter required for some Formula::factory
def initialize name=nil