diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/envutil.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index bd01b91b24..e54051d426 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -22,10 +22,7 @@ module EnvUtil end begin require "rbconfig" - File.join( - RbConfig::CONFIG["bindir"], - RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"] - ) + RbConfig.ruby rescue LoadError "ruby" end |