summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_specification_command.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_commands_specification_command.rb
parentda5b28396397ace84d914cb188055cbeb46b8725 (diff)
Workaround with fbb4e3f96c10de2240f2d87eac19cf6f62f65fea
Diffstat (limited to 'test/rubygems/test_gem_commands_specification_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_specification_command.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_commands_specification_command.rb b/test/rubygems/test_gem_commands_specification_command.rb
index 74a85e96ef..4dac3eb134 100644
--- a/test/rubygems/test_gem_commands_specification_command.rb
+++ b/test/rubygems/test_gem_commands_specification_command.rb
@@ -114,7 +114,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
@cmd.execute
end
- assert_equal "foo", YAML.load(@ui.output)
+ assert_equal "foo", YAML.unsafe_load(@ui.output)
end
def test_execute_file
@@ -230,7 +230,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
assert_match %r{\A--- !ruby/object:Gem::Specification}, @ui.output
assert_match %r{name: foo}, @ui.output
- spec = YAML.load @ui.output
+ spec = YAML.unsafe_load @ui.output
assert_equal Gem::Version.new("2.0.0"), spec.version
end
@@ -252,7 +252,7 @@ class TestGemCommandsSpecificationCommand < Gem::TestCase
assert_match %r{\A--- !ruby/object:Gem::Specification}, @ui.output
assert_match %r{name: foo}, @ui.output
- spec = YAML.load @ui.output
+ spec = YAML.unsafe_load @ui.output
assert_equal Gem::Version.new("2.0.1.pre"), spec.version
end