aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
diff options
context:
space:
mode:
authorJack Nagel2013-04-07 18:40:17 -0500
committerJack Nagel2013-04-07 20:59:52 -0500
commit9013b3a0c9c35411ae8c788ab5e104735a99fde2 (patch)
tree4866c916b55175f6279edfc8e9276290c1fa2a02 /Library/Homebrew/test/testing_env.rb
parent34bcb10b545c5352b3d30cb750694d53803d8357 (diff)
downloadbrew-9013b3a0c9c35411ae8c788ab5e104735a99fde2.tar.bz2
Define RUBY_PATH for tests
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
-rw-r--r--Library/Homebrew/test/testing_env.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index bde350390..731ef5b86 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -12,6 +12,7 @@ require 'extend/pathname'
require 'extend/string'
require 'exceptions'
require 'utils'
+require 'rbconfig'
# Constants normally defined in global.rb
HOMEBREW_PREFIX = Pathname.new('/private/tmp/testbrew/prefix')
@@ -26,6 +27,9 @@ HOMEBREW_WWW = 'http://example.com'
HOMEBREW_CURL_ARGS = '-fsLA'
HOMEBREW_VERSION = '0.9-test'
+RUBY_BIN = Pathname.new("#{RbConfig::CONFIG['bindir']}")
+RUBY_PATH = RUBY_BIN + RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT']
+
MACOS = true
MACOS_VERSION = ENV.fetch('MACOS_VERSION', 10.6)
MACOS_FULL_VERSION = '10.6.8'