summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_config_file.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-17 11:59:59 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-17 12:00:05 +0900
commit8e91b969df08b7a2eb27a5d6d38733eea42dc7ad (patch)
tree2478d5e7f2e4c99e04cf4678ce998343c1d040b2 /test/rubygems/test_gem_config_file.rb
parentda5b28396397ace84d914cb188055cbeb46b8725 (diff)
Workaround with fbb4e3f96c10de2240f2d87eac19cf6f62f65fea
Diffstat (limited to 'test/rubygems/test_gem_config_file.rb')
-rw-r--r--test/rubygems/test_gem_config_file.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_config_file.rb b/test/rubygems/test_gem_config_file.rb
index 92375c57b0..e155810384 100644
--- a/test/rubygems/test_gem_config_file.rb
+++ b/test/rubygems/test_gem_config_file.rb
@@ -354,7 +354,7 @@ if you believe they were disclosed to a third party.
:rubygems_api_key => 'x',
}
- assert_equal expected, YAML.load_file(@cfg.credentials_path)
+ assert_equal expected, YAML.unsafe_load_file(@cfg.credentials_path)
unless win_platform?
stat = File.stat @cfg.credentials_path
@@ -378,7 +378,7 @@ if you believe they were disclosed to a third party.
:rubygems_api_key => 'x',
}
- assert_equal expected, YAML.load_file(@cfg.credentials_path)
+ assert_equal expected, YAML.unsafe_load_file(@cfg.credentials_path)
stat = File.stat @cfg.credentials_path