Sha256: ef2e6bc1285db38f16fee9d810c8350b662334c9ebde52ba2f26e27b29cba5e2

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 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 "active_model_secure_token"
require "active_record"
require "mongoid"
require "minitest/autorun"
require "minitest/unit"

ENV['MONGOID_ENV'] = 'test'
Mongoid.load!('./config/mongoid.yml')

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

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

load './config/schema.rb'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_model_secure_token-1.0.0 test/test_helper.rb