aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_specification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r--test/rubygems/test_gem_specification.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index f4d4f6a381..c0dfd4bafe 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -1210,7 +1210,11 @@ end
def test_to_yaml_emits_syck_compat_yaml
if YAML.const_defined?(:ENGINE) && YAML::ENGINE.syck?
- yamler, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
+ begin
+ yamler, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
+ rescue LoadError
+ skip 'cannot load psych'
+ end
end
begin
@a1.add_dependency "gx", "1.0.0"