diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-01 10:19:28 -0300 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-07-01 10:19:28 -0300 |
commit | fc3ef73b580f3985e8fb14c85fc9b69e3aa1eac0 (patch) | |
tree | 0fd409d330e398d42d4f295edb841a18ee2f975f | |
parent | 93582d09740ff39e0e83270eefdc29ec3c50e437 (diff) | |
download | highline-fc3ef73b580f3985e8fb14c85fc9b69e3aa1eac0.tar.gz |
Whitelist HighLine::String on YAML.safe_load
-rw-r--r-- | test/test_string_extension.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_string_extension.rb b/test/test_string_extension.rb index fb4b9ff..1460e93 100644 --- a/test/test_string_extension.rb +++ b/test/test_string_extension.rb @@ -38,7 +38,7 @@ class TestStringExtension < Minitest::Test unless Gem::Version.new(YAML::VERSION) < Gem::Version.new("2.0.2") highline_string = HighLine::String.new("Yaml didn't messed with HighLine::String") yaml_highline_string = highline_string.to_yaml - yaml_loaded_string = YAML.safe_load(yaml_highline_string) + yaml_loaded_string = YAML.safe_load(yaml_highline_string, [HighLine::String]) assert_equal "Yaml didn't messed with HighLine::String", yaml_loaded_string assert_equal highline_string, yaml_loaded_string |