Skip to content

Commit

Permalink
Try again with aliases option for permitted classes
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 18, 2024
1 parent 0c42229 commit d0ca6fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/psych/test_object_references.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def assert_reference_trip obj
assert_match(/\*-?\d+/, yml)
begin
data = Psych.load yml
rescue Psych::AliasesNotEnabled
data = Psych.load yml, aliases: true
rescue Psych::DisallowedClass
data = Psych.unsafe_load yml
end
Expand Down

0 comments on commit d0ca6fa

Please sign in to comment.