Workaround with fbb4e3f96c

This commit is contained in:
Hiroshi SHIBATA 2021-05-17 11:59:59 +09:00
parent da5b283963
commit 8e91b969df
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
6 changed files with 18 additions and 18 deletions

View file

@ -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