Sha256: 247b2fc27e14f06e69e24f1545bebe93d5aba0e7b79772a479968866050b28d5
Contents?: true
Size: 712 Bytes
Versions: 48
Compression:
Stored size: 712 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rbbt' require 'test/unit' require 'rbbt/util/log' require 'rbbt/util/tmpfile' require 'rbbt/resource/path' require 'fileutils' class Test::Unit::TestCase include FileUtils def setup if defined? Persist Persist.cachedir = Rbbt.tmp.test.persistence.find :user end end def teardown if defined? Persist FileUtils.rm_rf Path.setup("", 'rbbt').tmp.test.find :user Persist::TC_CONNECTIONS.values.each do |c| c.close end Persist::TC_CONNECTIONS.clear end end def datafile_test(file) File.join(File.dirname(__FILE__), 'data', file) end end
Version data entries
48 entries across 48 versions & 1 rubygems