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

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
This commit is contained in:
tenderlove 2012-03-05 21:48:49 +00:00
parent 62ffffbe25
commit 8456c0603e

View file

@ -81,6 +81,7 @@ module Psych
# end # end
def test_key def test_key
skip 'only on ruby 2.0.0' if RUBY_VERSION < '2.0.0'
@yamldbm['a'] = 'b' @yamldbm['a'] = 'b'
@yamldbm['c'] = 'd' @yamldbm['c'] = 'd'
assert_equal 'a', @yamldbm.key('b') assert_equal 'a', @yamldbm.key('b')