Skip to content

Commit

Permalink
The unittest now emulates a fresh install better
Browse files Browse the repository at this point in the history
In future, this will hopefully prevent regressions like issue Homebrew#7.
  • Loading branch information
mxcl committed Aug 4, 2009
1 parent 541e813 commit 4c4c919
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/unittest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 4c4c919

Please sign in to comment.