diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-06-07 22:56:47 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-06-08 08:12:27 +0900 |
commit | 8c87efaa8a45166ed977294330c32a4b186b8e7b (patch) | |
tree | e10705dbc9420842409d10df54d978f67d24e907 /test/psych/test_psych.rb | |
parent | a49a08ab98659d09c89fc6404ca37a764c7b0d8e (diff) | |
download | ruby-8c87efaa8a45166ed977294330c32a4b186b8e7b.tar.gz |
[ruby/psych] Fix the test that does not work with libyaml-0.1.7
https://github.com/ruby/psych/commit/542cf9754f
Diffstat (limited to 'test/psych/test_psych.rb')
-rw-r--r-- | test/psych/test_psych.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb index bd271f262a..1abd69ceca 100644 --- a/test/psych/test_psych.rb +++ b/test/psych/test_psych.rb @@ -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 |