Commit 265a22f9 by Ryan Bigg

Merge pull request #263 from maurogeorge/patch-1

Simplify test setup
parents 5864423a 8d35a5d2
require 'bundler/setup'
require 'active_record' require 'active_record'
ActiveRecord::Base.raise_in_transactional_callbacks = true if ActiveRecord::VERSION::STRING >= '4.2'
require 'minitest/autorun' 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! def connect!
ActiveRecord::Base.establish_connection :adapter => 'sqlite3', database: ':memory:' 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