aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-07-22 15:38:24 +0100
committerMike McQuaid2015-07-28 10:57:55 +0100
commit76a0b1d494283865576c66f4ffec5ab691234280 (patch)
tree1b56b450cca35055584174eca02f96825d810fad /Library
parent00a9c61b43b0de33145c8d665a179b8b4ba1072b (diff)
downloadbrew-76a0b1d494283865576c66f4ffec5ab691234280.tar.bz2
test/lib/config: HOMEBREW_LIBRARY_PATH is normally a Pathname.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/lib/config.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/test/lib/config.rb b/Library/Homebrew/test/lib/config.rb
index af42adb58..8645a3d4b 100644
--- a/Library/Homebrew/test/lib/config.rb
+++ b/Library/Homebrew/test/lib/config.rb
@@ -1,4 +1,5 @@
require "tmpdir"
+require "pathname"
HOMEBREW_TEMP = Pathname.new(ENV["HOMEBREW_TEMP"] || Dir.tmpdir)
@@ -11,7 +12,7 @@ TEST_TMPDIR = ENV.fetch("HOMEBREW_TEST_TMPDIR") { |k|
HOMEBREW_PREFIX = Pathname.new(TEST_TMPDIR).join("prefix")
HOMEBREW_REPOSITORY = HOMEBREW_PREFIX
HOMEBREW_LIBRARY = HOMEBREW_REPOSITORY+"Library"
-HOMEBREW_LIBRARY_PATH = File.expand_path("../../..", __FILE__)
+HOMEBREW_LIBRARY_PATH = Pathname.new(File.expand_path("../../..", __FILE__))
HOMEBREW_LOAD_PATH = [File.expand_path("..", __FILE__), HOMEBREW_LIBRARY_PATH].join(":")
HOMEBREW_CACHE = HOMEBREW_PREFIX.parent+"cache"
HOMEBREW_CACHE_FORMULA = HOMEBREW_PREFIX.parent+"formula_cache"