summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-17 20:24:13 +0900
committergit <svn-admin@ruby-lang.org>2023-04-19 06:56:20 +0000
commitcdc2e3de108d448026bf793d2b482d6abf7ae236 (patch)
treebcc05775ca2c1fe61ad734f154ad1c7dcac6ff10 /test
parent7b959f628801d9f411a2dcc231c25a06e9d6234f (diff)
downloadruby-cdc2e3de108d448026bf793d2b482d6abf7ae236.tar.gz
[rubygems/rubygems] Wrap self.convert_rubygems_config_hash from Bundler::YAMLSerializer.load
https://github.com/rubygems/rubygems/commit/080880ac23
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index c1c0e19fa0..c1ac05415d 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -680,7 +680,9 @@ class Gem::TestCase < Test::Unit::TestCase
def load_yaml_file(file)
require "bundler/yaml_serializer"
- Bundler::YAMLSerializer.load(File.read(file))
+ require "rubygems/config_file"
+ yaml = Bundler::YAMLSerializer.load(File.read(file))
+ Gem::ConfigFile.convert_rubygems_config_hash(yaml)
end
def all_spec_names