Sha256: 768c5603bb921346bdf421311a6b97ac46ef5c585e787531c7078c828ad976fb
Contents?: true
Size: 691 Bytes
Versions: 41
Compression:
Stored size: 691 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 Random.new 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::CONNECTIONS.values.each do |c| c.close end Persist::CONNECTIONS.clear end end def datafile_test(file) File.join(File.dirname(__FILE__), 'data', file) end end
Version data entries
41 entries across 41 versions & 1 rubygems