diff options
author | Yusuke Endoh <[email protected]> | 2021-05-17 15:32:41 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2021-05-17 15:32:41 +0900 |
commit | 008a63c477c35ff72344370005029fc73c5ae6eb (patch) | |
tree | 05c75d8dc3343c9b10e18b8ff23c6f6847a74b54 /spec/mspec/lib | |
parent | e36da7ba186ed825a9fd1bfd993c504e95e021e3 (diff) |
Revert "Use YAML.unsafe_load instead of YAML.load."
This reverts commit a0e97b0e2e4314a0815d09beb825e38f234778da.
Diffstat (limited to 'spec/mspec/lib')
-rw-r--r-- | spec/mspec/lib/mspec/matchers/match_yaml.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/mspec/lib/mspec/matchers/match_yaml.rb b/spec/mspec/lib/mspec/matchers/match_yaml.rb index 614020e550..920d85a14f 100644 --- a/spec/mspec/lib/mspec/matchers/match_yaml.rb +++ b/spec/mspec/lib/mspec/matchers/match_yaml.rb @@ -30,7 +30,7 @@ class MatchYAMLMatcher def valid_yaml?(obj) require 'yaml' begin - YAML.unsafe_load(obj) + YAML.load(obj) rescue false else |