summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-06-07 22:56:47 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-06-07 22:58:32 +0900
commit542cf9754f836024e1b4ebb62636120e6962be2e (patch)
treefc267a02e2d0e560d6b11627e4c4d397c2b60ca4 /test
parentf602f9001ad6f4ce981678ac3e52a541e4e235af (diff)
downloadpsych-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.rb2
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