Sha256: 768c5603bb921346bdf421311a6b97ac46ef5c585e787531c7078c828ad976fb

Contents?: true

Size: 691 Bytes

Versions: 41

Compression:

Stored size: 691 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)
    File.join(File.dirname(__FILE__), 'data', file)
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
rbbt-util-5.9.12 test/test_helper.rb
rbbt-util-5.9.11 test/test_helper.rb
rbbt-util-5.9.10 test/test_helper.rb
rbbt-util-5.9.8 test/test_helper.rb
rbbt-util-5.9.7 test/test_helper.rb
rbbt-util-5.9.6 test/test_helper.rb
rbbt-util-5.9.5 test/test_helper.rb
rbbt-util-5.9.4 test/test_helper.rb
rbbt-util-5.9.3 test/test_helper.rb
rbbt-util-5.9.2 test/test_helper.rb
rbbt-util-5.9.1 test/test_helper.rb
rbbt-util-5.9.0 test/test_helper.rb
rbbt-util-5.8.10 test/test_helper.rb
rbbt-util-5.8.9 test/test_helper.rb
rbbt-util-5.8.8 test/test_helper.rb
rbbt-util-5.8.7 test/test_helper.rb
rbbt-util-5.8.6 test/test_helper.rb
rbbt-util-5.8.4 test/test_helper.rb
rbbt-util-5.8.3 test/test_helper.rb
rbbt-util-5.8.2 test/test_helper.rb