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.134 test/test_helper.rb
rbbt-util-5.26.133 test/test_helper.rb
rbbt-util-5.26.132 test/test_helper.rb
rbbt-util-5.26.131 test/test_helper.rb
rbbt-util-5.26.130 test/test_helper.rb
rbbt-util-5.26.129 test/test_helper.rb
rbbt-util-5.26.128 test/test_helper.rb
rbbt-util-5.26.126 test/test_helper.rb
rbbt-util-5.26.125 test/test_helper.rb
rbbt-util-5.26.123 test/test_helper.rb
rbbt-util-5.26.122 test/test_helper.rb
rbbt-util-5.26.121 test/test_helper.rb
rbbt-util-5.26.120 test/test_helper.rb
rbbt-util-5.26.119 test/test_helper.rb
rbbt-util-5.26.118 test/test_helper.rb
rbbt-util-5.26.117 test/test_helper.rb
rbbt-util-5.26.116 test/test_helper.rb
rbbt-util-5.26.115 test/test_helper.rb
rbbt-util-5.26.114 test/test_helper.rb
rbbt-util-5.26.113 test/test_helper.rb