Sha256: 58e270f240ab8145976d2ed2aa7e1e061da49fe78c1dc089c293063868895f65
Contents?: true
Size: 681 Bytes
Versions: 21
Compression:
Stored size: 681 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'test/unit' require 'fileutils' require 'rubygems' require 'rbbt' require 'rbbt/resource/path' 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
21 entries across 21 versions & 1 rubygems