Permalink
Browse files

Use rbconfig instead of rubygem detection

  • Loading branch information...
1 parent ec01cc4 commit c5a6de50bbc265ae53656396c02432cb91034977 @josh josh committed Sep 14, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 @@ class ParentIsolationTest < ActiveSupport::TestCase
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

0 comments on commit c5a6de5

Please sign in to comment.