From 4c4c919faa6590bb03cc38326022670ed7d557de Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 4 Aug 2009 00:43:16 +0100 Subject: [PATCH] The unittest now emulates a fresh install better In future, this will hopefully prevent regressions like issue #7. --- Library/Homebrew/unittest.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/unittest.rb b/Library/Homebrew/unittest.rb index f1942434b689..6ad8b945c695 100755 --- a/Library/Homebrew/unittest.rb +++ b/Library/Homebrew/unittest.rb @@ -9,9 +9,9 @@ # these are defined in env.rb usually, but we don't want to break our actual # homebrew tree, and we do want to test everything :) HOMEBREW_VERSION='0.3t' -HOMEBREW_CACHE=Pathname.new "/tmp/testbrew" -HOMEBREW_PREFIX=Pathname.new(HOMEBREW_CACHE)+'prefix' -HOMEBREW_CELLAR=Pathname.new(HOMEBREW_CACHE)+'cellar' +HOMEBREW_PREFIX=Pathname.new '/tmp/testbrew/prefix' +HOMEBREW_CACHE=HOMEBREW_PREFIX.parent+"cache" +HOMEBREW_CELLAR=HOMEBREW_PREFIX.parent+"cellar" HOMEBREW_CELLAR.mkpath raise "HOMEBREW_CELLAR couldn't be created!" unless HOMEBREW_CELLAR.directory?