From c5a6de50bbc265ae53656396c02432cb91034977 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 14 Sep 2009 00:47:09 -0500 Subject: Use rbconfig instead of rubygem detection --- activesupport/test/isolation_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activesupport/test/isolation_test.rb') 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 -- cgit v1.2.3