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

ruby-changes:21160

From: naruse <ko1@a...>
Date: Wed, 7 Sep 2011 19:36:24 +0900 (JST)
Subject: [ruby-changes:21160] naruse:r33209 (trunk): Remove assertion which depends the load order

naruse	2011-09-07 19:36:11 +0900 (Wed, 07 Sep 2011)

  New Revision: 33209

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

  Log:
    Remove assertion which depends the load order

  Modified files:
    trunk/test/psych/helper.rb

Index: test/psych/helper.rb
===================================================================
--- test/psych/helper.rb	(revision 33208)
+++ test/psych/helper.rb	(revision 33209)
@@ -2,6 +2,7 @@
 require 'stringio'
 require 'tempfile'
 require 'date'
+require 'psych'
 
 module Psych
   class TestCase < MiniTest::Unit::TestCase
@@ -53,11 +54,3 @@
     end
   end
 end
-
-require 'psych'
-
-# FIXME: remove this when syck is removed
-o = Object.new
-a = o.method(:psych_to_yaml)
-b = o.method(:to_yaml)
-raise "psych should define to_yaml" unless a == b

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

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