mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 17:43:59 +02:00
Workaround with fbb4e3f96c
This commit is contained in:
parent
da5b283963
commit
8e91b969df
6 changed files with 18 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue