1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix condition to set yaml engine

* test/rubygems/test_gem_specification.rb (test_to_yaml_emits_syck_compat_yaml):
  fix condition to set yaml engine.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-04-24 01:41:15 +00:00
parent 7320d83753
commit 28a8188e4d

View file

@ -1209,7 +1209,7 @@ end
end end
def test_to_yaml_emits_syck_compat_yaml def test_to_yaml_emits_syck_compat_yaml
if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? if YAML.const_defined?(:ENGINE) && YAML::ENGINE.syck?
yamler, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych' yamler, YAML::ENGINE.yamler = YAML::ENGINE.yamler, 'psych'
end end
begin begin