aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/isolation_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-09-14 00:47:09 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-14 00:47:09 -0500
commitc5a6de50bbc265ae53656396c02432cb91034977 (patch)
tree3b94f93be7a007d3eb035c53ddfd508434414517 /activesupport/test/isolation_test.rb
parentec01cc4510092864eee36109d2486caed9be5cae (diff)
downloadrails-c5a6de50bbc265ae53656396c02432cb91034977.tar.gz
rails-c5a6de50bbc265ae53656396c02432cb91034977.tar.bz2
rails-c5a6de50bbc265ae53656396c02432cb91034977.zip
Use rbconfig instead of rubygem detection
Diffstat (limited to 'activesupport/test/isolation_test.rb')
-rw-r--r--activesupport/test/isolation_test.rb3
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