diff options
| author | Jack Nagel | 2013-04-07 18:40:17 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-04-07 20:59:52 -0500 | 
| commit | ad8c9c268330fee1b838b37d5052a120fa76f45e (patch) | |
| tree | f85dba1ea0888ed974f89fc93512352e4db76a12 /Library/Homebrew/test/testing_env.rb | |
| parent | 0032f1669f6dd704c2257cc334071a7007446ac5 (diff) | |
| download | homebrew-ad8c9c268330fee1b838b37d5052a120fa76f45e.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'  | 
