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 13, 2023
1 parent c917be2 commit d38a7c6
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 d38a7c6

Please sign in to comment.