diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-14 00:47:09 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-14 00:47:09 -0500 |
commit | c5a6de50bbc265ae53656396c02432cb91034977 (patch) | |
tree | 3b94f93be7a007d3eb035c53ddfd508434414517 /activesupport/test | |
parent | ec01cc4510092864eee36109d2486caed9be5cae (diff) | |
download | rails-c5a6de50bbc265ae53656396c02432cb91034977.tar.gz rails-c5a6de50bbc265ae53656396c02432cb91034977.tar.bz2 rails-c5a6de50bbc265ae53656396c02432cb91034977.zip |
Use rbconfig instead of rubygem detection
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/isolation_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/test/isolation_test.rb b/activesupport/test/isolation_test.rb index b705521869..7a79b4dc8f 100644 --- a/activesupport/test/isolation_test.rb +++ b/activesupport/test/isolation_test.rb @@ -1,4 +1,5 @@ require 'abstract_unit' +require 'rbconfig' if defined?(MiniTest) || defined?(Test::Unit::TestResultFailureSupport) $stderr.puts "Isolation tests can test test-unit 1 only" @@ -77,7 +78,7 @@ else File.open(File.join(File.dirname(__FILE__), "fixtures", "isolation_test"), "w") {} ENV["CHILD"] = "1" - OUTPUT = `#{Gem.ruby} -I#{File.dirname(__FILE__)} "#{File.expand_path(__FILE__)}" -v` + OUTPUT = `#{RbConfig::CONFIG["bindir"]}/ruby -I#{File.dirname(__FILE__)} "#{File.expand_path(__FILE__)}" -v` ENV.delete("CHILD") def setup |