Sha256: ffa812a279224ee1fdb9c90e1d272a0aa35d76cbf0582581d2efc2c7c72c5130
Contents?: true
Size: 1.1 KB
Versions: 56
Compression:
Stored size: 1.1 KB
Contents
gem "test-unit", "~> 3.0" gem "minitest", "~> 5.5" $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 Persist.cachedir = Rbbt.tmp.test.persistence.find :user if defined? Persist Entity.entity_property_cache = Rbbt.tmp.test.entity_property.find(:user) if defined? Entity end def teardown FileUtils.rm_rf Rbbt.tmp.test.workflow.find #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 #if defined? Entity # FileUtils.rm_rf Entity.entity_property_cache.find(:user) if Entity.entity_property_cache =~ /tmp\/test/ #end end def self.datafile_test(file) Path.setup(File.join(File.dirname(__FILE__), 'data', file.to_s)) end def datafile_test(file) Test::Unit::TestCase.datafile_test(file) end end
Version data entries
56 entries across 56 versions & 1 rubygems