summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_specification.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-04 13:26:39 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-04 13:26:39 +0000
commit66b0d426ed2e918aa4ea637faf208a30a0cb97c8 (patch)
tree925456472ea44c4e63a9241076b513ece67da9af /test/rubygems/test_gem_specification.rb
parent09063f9d30658da148b2a4dd40ceca7d150e4aa6 (diff)
rescue if it cannnot load psych.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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"