mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use rbconfig instead of rubygem detection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user