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

ruby-changes:22866

From: tenderlove <ko1@a...>
Date: Tue, 6 Mar 2012 06:49:34 +0900 (JST)
Subject: [ruby-changes:22866] tenderlove:r34915 (trunk): only run `test_key` on ruby 2.0.0 or up

tenderlove	2012-03-06 06:48:49 +0900 (Tue, 06 Mar 2012)

  New Revision: 34915

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

  Log:
    only run `test_key` on ruby 2.0.0 or up

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

Index: test/psych/test_yamldbm.rb
===================================================================
--- test/psych/test_yamldbm.rb	(revision 34914)
+++ test/psych/test_yamldbm.rb	(revision 34915)
@@ -81,6 +81,7 @@
     # end
 
     def test_key
+      skip 'only on ruby 2.0.0' if RUBY_VERSION < '2.0.0'
       @yamldbm['a'] = 'b'
       @yamldbm['c'] = 'd'
       assert_equal 'a', @yamldbm.key('b')

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

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