bdb/test/database_test.rb
2009-11-23 23:34:51 -08:00

19 lines
350 B
Ruby

require File.dirname(__FILE__) + '/database_test_helper'
TMPDIR = File.dirname(__FILE__) + '/tmp'
FileUtils.rmtree TMPDIR
FileUtils.mkdir TMPDIR
class DatabaseTest < Test::Unit::TestCase
include DatabaseTestHelper
def setup
@db = Bdb::Database.new('foo', :path => TMPDIR)
@db.truncate!
end
def teardown
@db.close
end
end