[前][次][番号順一覧][スレッド一覧]

ruby-changes:23399

From: nobu <ko1@a...>
Date: Tue, 24 Apr 2012 10:44:10 +0900 (JST)
Subject: [ruby-changes:23399] nobu:r35450 (trunk): fix condition to set yaml engine

nobu	2012-04-24 10:41:15 +0900 (Tue, 24 Apr 2012)

  New Revision: 35450

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35450

  Log:
    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.

  Modified files:
    trunk/test/rubygems/test_gem_specification.rb

Index: test/rubygems/test_gem_specification.rb
===================================================================
--- test/rubygems/test_gem_specification.rb	(revision 35449)
+++ test/rubygems/test_gem_specification.rb	(revision 35450)
@@ -1209,7 +1209,7 @@
   end
 
   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'
     end
     begin

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]