summaryrefslogtreecommitdiff
path: root/test/dbm/test_dbm.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-18 04:54:09 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-18 04:54:09 +0000
commit4c1ea85dd892fa557205d0c85b60e59415cc2ae8 (patch)
treea2402d9a6a86cae1a206464acb58e7462d502c1f /test/dbm/test_dbm.rb
parent48a97f2c949a1ab22bc11c0be6b5da30a6ce6e72 (diff)
* test/dbm/test_dbm.rb (test_dbmfile_suffix): DBM::VERSION should
be Berkeley DB if foo.db is created by DBM.open. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/dbm/test_dbm.rb')
-rw-r--r--test/dbm/test_dbm.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index 582b0d7eaff..1483a604dc4 100644
--- a/test/dbm/test_dbm.rb
+++ b/test/dbm/test_dbm.rb
@@ -109,6 +109,9 @@ if defined? DBM
when /\bQDBM\b/
assert_equal(["#{prefix}.dir", "#{prefix}.pag"], files)
end
+ if files == ["#{prefix}.db"]
+ assert_match(/\bBerkeley DB\b/, DBM::VERSION)
+ end
end
def test_s_new_has_no_block