aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 16:15:46 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 16:15:46 +0000
commit20355453ad59bf1915673e2810e1a604843e55de (patch)
treeec7b06e07553f3f71dea63b9bad413f51b48fbfe /spec
parent836d322f9d951064e8a0601d71b82dfbcc58406f (diff)
downloadruby-20355453ad59bf1915673e2810e1a604843e55de.tar.gz
Use ENV['RUBY_EXE'] as RbConfig.ruby might be incorrect
* On a built-but-not-installed-ruby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/optional/capi/spec_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/optional/capi/spec_helper.rb b/spec/ruby/optional/capi/spec_helper.rb
index a5f64b51fb..f43a9f345b 100644
--- a/spec/ruby/optional/capi/spec_helper.rb
+++ b/spec/ruby/optional/capi/spec_helper.rb
@@ -27,7 +27,7 @@ def compile_extension(name)
ruby_library = "#{RbConfig::CONFIG['libdir']}/#{libruby_so}"
unless libruby_so and File.exist?(ruby_library)
# Statically-compiled lib in the binary
- ruby_library = RbConfig.ruby
+ ruby_library = ENV['RUBY_EXE']
end
return lib if File.exist?(lib) and