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:
parent
62ffffbe25
commit
8456c0603e
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue