summaryrefslogtreecommitdiff
path: root/test/dbm
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-19 14:44:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-19 14:44:36 +0000
commit05a2cd709f4b223c1e3c32d7699b31d7dab20591 (patch)
tree8a6514c166af35fd3a79f77a807c9d0685c94154 /test/dbm
parentd7bf156afd420a6a77ca2fac30c333e860243121 (diff)
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dbm')
-rw-r--r--test/dbm/test_dbm.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index b872623..1b85120 100644
--- a/test/dbm/test_dbm.rb
+++ b/test/dbm/test_dbm.rb
@@ -574,6 +574,10 @@ if defined? DBM
FileUtils.remove_entry_secure @tmproot if File.directory?(@tmproot)
end
+ def test_version
+ assert_instance_of(String, DBM::VERSION)
+ end
+
def test_reader_open_notexist
assert_raise(Errno::ENOENT) {
DBM.open("#{@tmproot}/a", 0666, DBM::READER)