Sha256: 247b2fc27e14f06e69e24f1545bebe93d5aba0e7b79772a479968866050b28d5

Contents?: true

Size: 712 Bytes

Versions: 48

Compression:

Stored size: 712 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rbbt'
require 'test/unit'
require 'rbbt/util/log'
require 'rbbt/util/tmpfile'
require 'rbbt/resource/path'
require 'fileutils'

class Test::Unit::TestCase
  include FileUtils

  def setup
    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::TC_CONNECTIONS.values.each do |c| c.close end
      Persist::TC_CONNECTIONS.clear
    end
  end

  def datafile_test(file)
    File.join(File.dirname(__FILE__), 'data', file)
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
rbbt-util-5.5.47 test/test_helper.rb
rbbt-util-5.5.46 test/test_helper.rb
rbbt-util-5.5.45 test/test_helper.rb
rbbt-util-5.5.44 test/test_helper.rb
rbbt-util-5.5.43 test/test_helper.rb
rbbt-util-5.5.42 test/test_helper.rb
rbbt-util-5.5.41 test/test_helper.rb
rbbt-util-5.5.40 test/test_helper.rb
rbbt-util-5.5.39 test/test_helper.rb
rbbt-util-5.5.38 test/test_helper.rb
rbbt-util-5.5.37 test/test_helper.rb
rbbt-util-5.5.36 test/test_helper.rb
rbbt-util-5.5.35 test/test_helper.rb
rbbt-util-5.5.34 test/test_helper.rb
rbbt-util-5.5.33 test/test_helper.rb
rbbt-util-5.5.32 test/test_helper.rb
rbbt-util-5.5.31 test/test_helper.rb
rbbt-util-5.5.30 test/test_helper.rb
rbbt-util-5.5.29 test/test_helper.rb
rbbt-util-5.5.28 test/test_helper.rb