diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 6 |
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" |