Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use rbconfig instead of rubygem detection

  • Loading branch information...
commit c5a6de50bbc265ae53656396c02432cb91034977 1 parent ec01cc4
@josh josh authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  activesupport/test/isolation_test.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.