aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/lib/config.rb
diff options
context:
space:
mode:
authorJack Nagel2015-04-28 22:37:27 -0400
committerJack Nagel2015-04-29 19:15:11 -0400
commit2ca8172fe9f1aba5188fc4ab164b34d5def607c9 (patch)
treea4baa9bee13808e1b18b41fe0956b804e2bd24dd /Library/Homebrew/test/lib/config.rb
parent80403db9a18159ed72c5a195f937d836a62c47e5 (diff)
downloadbrew-2ca8172fe9f1aba5188fc4ab164b34d5def607c9.tar.bz2
Let the test environment inject its own load path
Diffstat (limited to 'Library/Homebrew/test/lib/config.rb')
-rw-r--r--Library/Homebrew/test/lib/config.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/test/lib/config.rb b/Library/Homebrew/test/lib/config.rb
index 919dfeaaf..af42adb58 100644
--- a/Library/Homebrew/test/lib/config.rb
+++ b/Library/Homebrew/test/lib/config.rb
@@ -11,6 +11,8 @@ 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_LOAD_PATH = [File.expand_path("..", __FILE__), HOMEBREW_LIBRARY_PATH].join(":")
HOMEBREW_CACHE = HOMEBREW_PREFIX.parent+"cache"
HOMEBREW_CACHE_FORMULA = HOMEBREW_PREFIX.parent+"formula_cache"
HOMEBREW_CELLAR = HOMEBREW_PREFIX.parent+"cellar"