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.27 test/test_helper.rb
rbbt-util-5.5.26 test/test_helper.rb
rbbt-util-5.5.25 test/test_helper.rb
rbbt-util-5.5.24 test/test_helper.rb
rbbt-util-5.5.23 test/test_helper.rb
rbbt-util-5.5.22 test/test_helper.rb
rbbt-util-5.5.21 test/test_helper.rb
rbbt-util-5.5.20 test/test_helper.rb
rbbt-util-5.5.19 test/test_helper.rb
rbbt-util-5.5.18 test/test_helper.rb
rbbt-util-5.5.17 test/test_helper.rb
rbbt-util-5.5.16 test/test_helper.rb
rbbt-util-5.5.15 test/test_helper.rb
rbbt-util-5.5.14 test/test_helper.rb
rbbt-util-5.5.13 test/test_helper.rb
rbbt-util-5.5.12 test/test_helper.rb
rbbt-util-5.5.11 test/test_helper.rb
rbbt-util-5.5.10 test/test_helper.rb
rbbt-util-5.5.9 test/test_helper.rb
rbbt-util-5.5.8 test/test_helper.rb