From 542cf9754f836024e1b4ebb62636120e6962be2e Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Mon, 7 Jun 2021 22:56:47 +0900 Subject: Fix the test that does not work with libyaml-0.1.7 --- 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 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 -- cgit v1.2.3