diff options
Diffstat (limited to 'activesupport/test/isolation_test.rb')
-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 |