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

Version Path
rbbt-util-5.23.21 test/test_helper.rb
rbbt-util-5.23.20 test/test_helper.rb
rbbt-util-5.23.19 test/test_helper.rb
rbbt-util-5.23.18 test/test_helper.rb
rbbt-util-5.23.17 test/test_helper.rb
rbbt-util-5.23.16 test/test_helper.rb
rbbt-util-5.23.15 test/test_helper.rb
rbbt-util-5.23.14 test/test_helper.rb
rbbt-util-5.23.13 test/test_helper.rb
rbbt-util-5.23.12 test/test_helper.rb
rbbt-util-5.23.11 test/test_helper.rb
rbbt-util-5.23.10 test/test_helper.rb
rbbt-util-5.23.9 test/test_helper.rb
rbbt-util-5.23.8 test/test_helper.rb
rbbt-util-5.23.7 test/test_helper.rb
rbbt-util-5.23.6 test/test_helper.rb
rbbt-util-5.23.5 test/test_helper.rb
rbbt-util-5.23.4 test/test_helper.rb
rbbt-util-5.23.3 test/test_helper.rb
rbbt-util-5.23.2 test/test_helper.rb