From 8c87efaa8a45166ed977294330c32a4b186b8e7b Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Mon, 7 Jun 2021 22:56:47 +0900 Subject: [PATCH] [ruby/psych] Fix the test that does not work with libyaml-0.1.7 https://github.com/ruby/psych/commit/542cf9754f --- test/psych/test_psych.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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