summaryrefslogtreecommitdiff
path: root/spec/mspec
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-05-17 15:32:41 +0900
committerYusuke Endoh <mame@ruby-lang.org>2021-05-17 15:32:41 +0900
commit008a63c477c35ff72344370005029fc73c5ae6eb (patch)
tree05c75d8dc3343c9b10e18b8ff23c6f6847a74b54 /spec/mspec
parente36da7ba186ed825a9fd1bfd993c504e95e021e3 (diff)
downloadruby-008a63c477c35ff72344370005029fc73c5ae6eb.tar.gz
Revert "Use YAML.unsafe_load instead of YAML.load."
This reverts commit a0e97b0e2e4314a0815d09beb825e38f234778da.
Diffstat (limited to 'spec/mspec')
-rw-r--r--spec/mspec/lib/mspec/matchers/match_yaml.rb2
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