aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testball.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/testball.rb')
-rw-r--r--Library/Homebrew/test/testball.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/test/testball.rb b/Library/Homebrew/test/testball.rb
index ecee9d709..f440a6ed9 100644
--- a/Library/Homebrew/test/testball.rb
+++ b/Library/Homebrew/test/testball.rb
@@ -6,7 +6,6 @@ class TestBall <Formula
@url="file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
@homepage = 'http://example.com/'
super "testball"
- @path = Pathname.new(__FILE__)
end
def install
prefix.install "bin"
@@ -14,6 +13,13 @@ class TestBall <Formula
end
end
+class TestBallWithRealPath < TestBall
+ def initialize name=nil
+ super "testballwithrealpath"
+ @path = Pathname.new(__FILE__)
+ end
+end
+
class TestBallWithMirror < Formula
# `url` is bogus---curl should fail to download it. The mirror is fine
# though.