We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83571ba commit 386ad8bCopy full SHA for 386ad8b
1 file changed
test/rubygems/test_gem_commands_owner_command.rb
@@ -55,7 +55,11 @@ def test_show_owners
55
end
56
57
def test_show_owners_dont_load_objects
58
- pend "testing a psych-only API" unless defined?(::Psych::DisallowedClass)
+ Gem.load_yaml
59
+
60
+ # Gem::SafeYAML.load uses Psych.unsafe_load when Psych is enabled,
61
+ # which does not restrict classes. Only YAMLSerializer restricts object tags.
62
+ pend "Gem::SafeYAML.load uses Psych.unsafe_load which does not restrict classes" if Gem.use_psych?
63
64
response = <<EOF
65
---
0 commit comments