[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
@ -424,7 +424,7 @@ eoyml
|
|||||||
end
|
end
|
||||||
assert_equal "Tried to dump unspecified class: Symbol(:foo)", error.message
|
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
|
end
|
||||||
|
|
||||||
def test_safe_dump_aliases
|
def test_safe_dump_aliases
|
||||||
|
Loading…
x
Reference in New Issue
Block a user