Commit 8d35a5d2 by Mauro George

Simplify test setup

* Rely on bundler/setup to setup the load paths
parent 5864423a
require 'bundler/setup'
require 'active_record'
ActiveRecord::Base.raise_in_transactional_callbacks = true if ActiveRecord::VERSION::STRING >= '4.2'
require 'minitest/autorun'
test_framework = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase
require 'paranoia'
require File.expand_path(File.dirname(__FILE__) + "/../lib/paranoia")
test_framework = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase
ActiveRecord::Base.raise_in_transactional_callbacks = true if ActiveRecord::VERSION::STRING >= '4.2'
def connect!
ActiveRecord::Base.establish_connection :adapter => 'sqlite3', database: ':memory:'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment