diff --git a/spec/support/yaml_alias_load_as_unsafe_load.rb b/spec/support/yaml_alias_load_as_unsafe_load.rb new file mode 100644 index 000000000..fbd7514d9 --- /dev/null +++ b/spec/support/yaml_alias_load_as_unsafe_load.rb @@ -0,0 +1,4 @@ +if Psych::VERSION >= "4.0" + require 'yaml' + YAML.singleton_class.alias_method :load, :unsafe_load +end