diff options
| author | Jack Nagel | 2013-04-07 18:40:17 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-07 20:59:52 -0500 |
| commit | 9013b3a0c9c35411ae8c788ab5e104735a99fde2 (patch) | |
| tree | 4866c916b55175f6279edfc8e9276290c1fa2a02 /Library/Homebrew/test/testing_env.rb | |
| parent | 34bcb10b545c5352b3d30cb750694d53803d8357 (diff) | |
| download | brew-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.rb | 4 |
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' |
