bdb/test/database_test.rb

19 lines
350 B
Ruby
Raw Normal View History

2009-11-24 08:34:51 +01:00
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