Sha256: a032fb7df44f10ffdae8b1832e87a0f811571c5567ebe1bce948fc95bb89316f

Contents?: true

Size: 783 Bytes

Versions: 2

Compression:

Stored size: 783 Bytes

Contents

require 'rubygems'
require 'bundler'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'test/unit'
require 'fileutils'

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'bdb1'

STDERR.puts "VERSION of BDB1 is #{BDB1::VERSION}"

class Test::Unit::TestCase
  def setup
    clean_tmpdir
  end

  def teardown
    clean_tmpdir
  end

  def tmpdir(file)
    File.join(File.dirname(__FILE__), 'tmp', file)
  end

  def clean_tmpdir
    File.unlink(*Dir[tmpdir('*')])
  end

  def examplesdir(file)
    File.join(File.dirname(__FILE__), '..', 'examples', file)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bdb1-0.2.5 test/helper.rb
bdb1-0.2.4 test/helper.rb