mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/psych] Fix the test that does not work with libyaml-0.1.7
https://github.com/ruby/psych/commit/542cf9754f
This commit is contained in:
parent
a49a08ab98
commit
8c87efaa8a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue