diff options
| author | Max Howell | 2009-08-04 00:43:16 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-04 01:07:36 +0100 |
| commit | 7041ef629089e2d766b9abfa130baff63cb8b161 (patch) | |
| tree | 2f02af296ec6ead8a0b831959d2deb866aa3991e /Library | |
| parent | 2de50f6717727365a33173877a579397ca67fcc5 (diff) | |
| download | homebrew-7041ef629089e2d766b9abfa130baff63cb8b161.tar.bz2 | |
The unittest now emulates a fresh install better
In future, this will hopefully prevent regressions like issue #7.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/unittest.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/unittest.rb b/Library/Homebrew/unittest.rb index f1942434b..6ad8b945c 100755 --- a/Library/Homebrew/unittest.rb +++ b/Library/Homebrew/unittest.rb @@ -9,9 +9,9 @@ require 'utils' # 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? |
