Sha256: 6e6b99b9bcfe35d56e9891dd80fbedd7a5054b9bc8d7c7870421e2a1d731b35b

Contents?: true

Size: 1.12 KB

Versions: 195

Compression:

Stored size: 1.12 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
    #Open.clear_dir_repos
    #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

195 entries across 195 versions & 1 rubygems

Version Path
rbbt-util-5.26.65 test/test_helper.rb
rbbt-util-5.26.64 test/test_helper.rb
rbbt-util-5.26.63 test/test_helper.rb
rbbt-util-5.26.62 test/test_helper.rb
rbbt-util-5.26.59 test/test_helper.rb
rbbt-util-5.26.58 test/test_helper.rb
rbbt-util-5.26.57 test/test_helper.rb
rbbt-util-5.26.55 test/test_helper.rb
rbbt-util-5.26.54 test/test_helper.rb
rbbt-util-5.26.53 test/test_helper.rb
rbbt-util-5.26.52 test/test_helper.rb
rbbt-util-5.26.50 test/test_helper.rb
rbbt-util-5.26.49 test/test_helper.rb
rbbt-util-5.26.48 test/test_helper.rb
rbbt-util-5.26.47 test/test_helper.rb
rbbt-util-5.26.46 test/test_helper.rb
rbbt-util-5.26.45 test/test_helper.rb
rbbt-util-5.26.44 test/test_helper.rb
rbbt-util-5.26.43 test/test_helper.rb
rbbt-util-5.26.42 test/test_helper.rb