diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-11 14:05:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-07-11 14:05:34 +0900 |
commit | d77b84ca82e1cef10ef06776a207151ef864b3ca (patch) | |
tree | 6c44084b44d2ccd88e528509d8c02aa9e8aea5a4 /test/ruby | |
parent | d34303ad109b93445b01d0420c9a5bfeffafac38 (diff) | |
download | ruby-d77b84ca82e1cef10ef06776a207151ef864b3ca.tar.gz |
$LOAD_PATH.resolve_feature_path
Moved from RubyVM. [Feature #15903]
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_require.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index afd5d20558..56dfd95096 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -898,7 +898,7 @@ class TestRequire < Test::Unit::TestCase } end - if defined?(RubyVM.resolve_feature_path) + if defined?($LOAD_PATH.resolve_feature_path) def test_resolve_feature_path paths, loaded = $:.dup, $".dup Dir.mktmpdir do |tmp| @@ -907,9 +907,9 @@ class TestRequire < Test::Unit::TestCase path = File.realpath(file.path) dir, base = File.split(path) $:.unshift(dir) - assert_equal([:rb, path], RubyVM.resolve_feature_path(base)) + assert_equal([:rb, path], $LOAD_PATH.resolve_feature_path(base)) $".push(path) - assert_equal([:rb, path], RubyVM.resolve_feature_path(base)) + assert_equal([:rb, path], $LOAD_PATH.resolve_feature_path(base)) end end ensure |