Sha256: d14b081a9cdbf00d287b452ea68e268b4be2a3952682200b44da960549fda0d0

Contents?: true

Size: 674 Bytes

Versions: 2

Compression:

Stored size: 674 Bytes

Contents

testdir = File.dirname(__FILE__)
$LOAD_PATH.unshift testdir unless $LOAD_PATH.include?(testdir)

libdir = File.dirname(File.dirname(__FILE__)) + '/lib'
$LOAD_PATH.unshift libdir unless $LOAD_PATH.include?(libdir)

require "rubygems"
require "super_token"
require "minitest/autorun"
require "minitest/unit"

Dir["models/*.rb"].each {|file| require file }

def assert_not_nil(exp, msg=nil)
  msg = message(msg) { "<#{mu_pp(exp)}> expected to not be nil" }
  assert(!exp.nil?, msg)
end

DB_FILE = 'tmp/test_db'
FileUtils.mkdir_p File.dirname(DB_FILE)
FileUtils.rm_f DB_FILE

ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => DB_FILE

load 'schema.rb'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
super_token-1.1.0 test/test_helper.rb
super_token-1.0.0 test/test_helper.rb