Sha256: c35263aadc574cb625cdcbf20a937ed3d6cb65169637574507cbae67e42906a4

Contents?: true

Size: 713 Bytes

Versions: 27

Compression:

Stored size: 713 Bytes

Contents

$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
    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::CONNECTIONS.values.each do |c| c.close end
    #  Persist::CONNECTIONS.clear
    #end
  end

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

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rbbt-util-5.14.33 test/test_helper.rb
rbbt-util-5.14.32 test/test_helper.rb
rbbt-util-5.14.31 test/test_helper.rb
rbbt-util-5.14.30 test/test_helper.rb
rbbt-util-5.14.29 test/test_helper.rb
rbbt-util-5.14.28 test/test_helper.rb
rbbt-util-5.14.26 test/test_helper.rb
rbbt-util-5.14.25 test/test_helper.rb
rbbt-util-5.14.24 test/test_helper.rb
rbbt-util-5.14.23 test/test_helper.rb
rbbt-util-5.14.22 test/test_helper.rb
rbbt-util-5.14.21 test/test_helper.rb
rbbt-util-5.14.20 test/test_helper.rb
rbbt-util-5.14.18 test/test_helper.rb
rbbt-util-5.14.17 test/test_helper.rb
rbbt-util-5.14.16 test/test_helper.rb
rbbt-util-5.14.15 test/test_helper.rb
rbbt-util-5.14.14 test/test_helper.rb
rbbt-util-5.14.12 test/test_helper.rb
rbbt-util-5.14.11 test/test_helper.rb