aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlyssa Ross2016-12-23 17:29:29 +0000
committerAlyssa Ross2017-01-01 14:27:24 +0000
commite1d7d44e5a13d16bc7773a7afb09c1a789878f5a (patch)
tree726872fff252129233d6a44517c7e109f1e8f3b4 /Library
parente4856143a6a43a306101abcbf0f2d71d00354a18 (diff)
downloadbrew-e1d7d44e5a13d16bc7773a7afb09c1a789878f5a.tar.bz2
tests: optlink fake kegs in uninstall test
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/uninstall_test.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Homebrew/test/uninstall_test.rb b/Library/Homebrew/test/uninstall_test.rb
index e7849178b..597e77e40 100644
--- a/Library/Homebrew/test/uninstall_test.rb
+++ b/Library/Homebrew/test/uninstall_test.rb
@@ -9,7 +9,10 @@ class UninstallTests < Homebrew::TestCase
depends_on "dependency"
end
- [@dependency, @dependent].each { |f| f.installed_prefix.mkpath }
+ [@dependency, @dependent].each do |f|
+ f.installed_prefix.mkpath
+ Keg.new(f.installed_prefix).optlink
+ end
tab = Tab.empty
tab.homebrew_version = "1.1.6"
@@ -25,7 +28,10 @@ class UninstallTests < Homebrew::TestCase
def teardown
Homebrew.failed = false
- [@dependency, @dependent].each { |f| f.rack.rmtree }
+ [@dependency, @dependent].each do |f|
+ f.installed_kegs.each(&:remove_opt_record)
+ f.rack.rmtree
+ end
end
def handle_unsatisfied_dependents