diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2021-05-13 10:49:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 10:49:03 -0700 |
commit | 4de7e9c879ae042d0c25d6ade6274d593c4cc5bb (patch) | |
tree | 400c2acb636fe2e4f0a56920165648f28132a9cd /test/psych/test_set.rb | |
parent | 64bee7e2dee741a9f64e5c1b2122c07ef3e6c81a (diff) | |
parent | cb50aa8d3fb8be01897becff77b4922b12a0ab4c (diff) | |
download | psych-4de7e9c879ae042d0c25d6ade6274d593c4cc5bb.zip |
Merge pull request #488 from ruby/add-unsafe
Introduce `Psych.unsafe_load`
Diffstat (limited to 'test/psych/test_set.rb')
-rw-r--r-- | test/psych/test_set.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/psych/test_set.rb b/test/psych/test_set.rb index 5690957..87944d8 100644 --- a/test/psych/test_set.rb +++ b/test/psych/test_set.rb @@ -21,7 +21,7 @@ module Psych ### # FIXME: Syck should also support !!set as shorthand def test_load_from_yaml - loaded = Psych.load(<<-eoyml) + loaded = Psych.unsafe_load(<<-eoyml) --- !set foo: bar bar: baz @@ -30,11 +30,11 @@ bar: baz end def test_loaded_class - assert_instance_of(Psych::Set, Psych.load(Psych.dump(@set))) + assert_instance_of(Psych::Set, Psych.unsafe_load(Psych.dump(@set))) end def test_set_shorthand - loaded = Psych.load(<<-eoyml) + loaded = Psych.unsafe_load(<<-eoyml) --- !!set foo: bar bar: baz |