Skip to content

Commit

Permalink
For tests, use YAML.unsafe load in psych 4+
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Oct 12, 2023
1 parent bd94843 commit 1c24b62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/support/yaml_alias_load_as_unsafe_load.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if Psych::VERSION >= "4.0"
require 'yaml'
YAML.singleton_class.alias_method :load, :unsafe_load
end

0 comments on commit 1c24b62

Please sign in to comment.