diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-23 13:48:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-23 13:48:45 +0000 |
commit | e0431daa00c45948d21ff46304aa885d465c9f57 (patch) | |
tree | 07a7ff717d8b2e21416c4d5ac171d28506f09e67 | |
parent | c2cc5fc9618cb408f13e8ec16060274d3cbe6019 (diff) | |
download | ruby-e0431daa00c45948d21ff46304aa885d465c9f57.tar.gz |
test with psych
* test/rubygems/test_gem_specification.rb (test_to_yaml_emits_syck_compat_yaml):
test with psych.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index ce9212e751..c19d364c66 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -1210,13 +1210,16 @@ 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' + end + begin @a1.add_dependency "gx", "1.0.0" y = @a1.to_yaml refute_match %r!^\s*- - =!, y - else - skip "Only validates psych yaml" + ensure + YAML::ENGINE.yamler = yamler if yamler end end |