Skip to content

Commit

Permalink
Fix the test that does not work with libyaml-0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Jun 7, 2021
1 parent f602f90 commit 542cf97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/psych/test_psych.rb
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def test_safe_dump_symbols
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
Expand Down

0 comments on commit 542cf97

Please sign in to comment.