Commit f8a49db6 by John Hawthorn

Use minitest for all AR versions

This allows testing rails 4.0 on ruby 2.2
parent 7a5bd3b5
require 'active_record' require 'active_record'
ActiveRecord::Base.raise_in_transactional_callbacks = true if ActiveRecord::VERSION::STRING >= '4.2' ActiveRecord::Base.raise_in_transactional_callbacks = true if ActiveRecord::VERSION::STRING >= '4.2'
test_framework = if ActiveRecord::VERSION::STRING >= "4.1" require 'minitest/autorun'
require 'minitest/autorun' test_framework = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase
MiniTest::Test
else
require 'test/unit'
Test::Unit::TestCase
end
require File.expand_path(File.dirname(__FILE__) + "/../lib/paranoia") require File.expand_path(File.dirname(__FILE__) + "/../lib/paranoia")
def connect! def connect!
......
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