1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/psych] Fix the test that does not work with libyaml-0.1.7

https://github.com/ruby/psych/commit/542cf9754f
This commit is contained in:
Yusuke Endoh 2021-06-07 22:56:47 +09:00 committed by Hiroshi SHIBATA
parent a49a08ab98
commit 8c87efaa8a

View file

@ -424,7 +424,7 @@ eoyml
end
assert_equal "Tried to dump unspecified class: Symbol(:foo)", error.message
assert_equal "--- :foo\n", Psych.safe_dump(:foo, permitted_classes: [Symbol], permitted_symbols: [:foo])
assert_match(/\A--- :foo\n(?:\.\.\.\n)?\z/, Psych.safe_dump(:foo, permitted_classes: [Symbol], permitted_symbols: [:foo]))
end
def test_safe_dump_aliases