diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-06-07 22:56:47 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-06-07 22:58:32 +0900 |
commit | 542cf9754f836024e1b4ebb62636120e6962be2e (patch) | |
tree | fc267a02e2d0e560d6b11627e4c4d397c2b60ca4 /test | |
parent | f602f9001ad6f4ce981678ac3e52a541e4e235af (diff) | |
download | psych-542cf9754f836024e1b4ebb62636120e6962be2e.tar.gz |
Fix the test that does not work with libyaml-0.1.7
Diffstat (limited to 'test')
-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 bd271f2..1abd69c 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 |