aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-08-09 11:29:18 -0500
committerJack Nagel2013-08-09 20:50:42 -0500
commit1074221a220b663b01b5fbfc41e847f662f4aac0 (patch)
treedab1965ba2c4d3bcc3d1212f9d0ae1354947c83e /Library
parent755c786040e4c83735c8468c6bea4644e3b31aa4 (diff)
downloadbrew-1074221a220b663b01b5fbfc41e847f662f4aac0.tar.bz2
Remove keg test dependency on formula
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_keg.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Homebrew/test/test_keg.rb b/Library/Homebrew/test/test_keg.rb
index c8b0b8681..df0ea3fea 100644
--- a/Library/Homebrew/test/test_keg.rb
+++ b/Library/Homebrew/test/test_keg.rb
@@ -1,5 +1,4 @@
require 'testing_env'
-require 'test/testball'
require 'keg'
require 'stringio'
@@ -7,12 +6,15 @@ class LinkTests < Test::Unit::TestCase
include FileUtils
def setup
- @formula = TestBall.new
- shutup do
- @formula.brew { @formula.install }
+ @keg = HOMEBREW_CELLAR/"foo/1.0"
+ @keg.mkpath
+ (@keg/"bin").mkpath
+
+ %w{hiworld helloworld goodbye_cruel_world}.each do |file|
+ touch @keg/"bin/#{file}"
end
- @keg = Keg.for @formula.prefix
- @keg.unlink
+
+ @keg = Keg.new(@keg)
@mode = OpenStruct.new
@@ -45,7 +47,7 @@ class LinkTests < Test::Unit::TestCase
def test_linking_fails_when_already_linked
@keg.link
- assert_raise RuntimeError, "Cannot link testball" do
+ assert_raise RuntimeError do
shutup { @keg.link }
end
end