Sha256: c9e97b340c8dcf2ebbfdbf554565317e8b6ec47a53be76f603dab4f5dcdf2bd6

Contents?: true

Size: 640 Bytes

Versions: 20

Compression:

Stored size: 640 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
    Persist.cachedir = Rbbt.tmp.test.persistence.find :user
  end

  def teardown
    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

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rbbt-util-5.4.1 test/test_helper.rb
rbbt-util-5.3.4 test/test_helper.rb
rbbt-util-5.3.3 test/test_helper.rb
rbbt-util-5.3.2 test/test_helper.rb
rbbt-util-5.3.1 test/test_helper.rb
rbbt-util-5.3.0 test/test_helper.rb
rbbt-util-5.2.4 test/test_helper.rb
rbbt-util-5.2.3 test/test_helper.rb
rbbt-util-5.2.2 test/test_helper.rb
rbbt-util-5.2.0 test/test_helper.rb
rbbt-util-5.1.0 test/test_helper.rb
rbbt-util-5.0.1 test/test_helper.rb
rbbt-util-5.0.0 test/test_helper.rb
rbbt-util-4.4.0 test/test_helper.rb
rbbt-util-4.3.0 test/test_helper.rb
rbbt-util-4.2.0 test/test_helper.rb
rbbt-util-4.1.0 test/test_helper.rb
rbbt-util-4.0.2 test/test_helper.rb
rbbt-util-4.0.1 test/test_helper.rb
rbbt-util-4.0.0 test/test_helper.rb