summaryrefslogtreecommitdiff
path: root/test/psych/test_yamldbm.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-05 21:48:49 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-05 21:48:49 +0000
commit8456c0603e8a121416445fad5cbe4527db8ca1af (patch)
treeb35caae202d31053871ca9ac362f42788b1c4f2d /test/psych/test_yamldbm.rb
parent62ffffbe25a7a61a825f5b04399b9250f1af5ec0 (diff)
only run `test_key` on ruby 2.0.0 or up
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych/test_yamldbm.rb')
-rw-r--r--test/psych/test_yamldbm.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/psych/test_yamldbm.rb b/test/psych/test_yamldbm.rb
index bff13635ab..d9780035f2 100644
--- a/test/psych/test_yamldbm.rb
+++ b/test/psych/test_yamldbm.rb
@@ -81,6 +81,7 @@ module Psych
# 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')