test/test_helper.rb in attr_encrypted-1.3.4 vs test/test_helper.rb in attr_encrypted-1.3.5
- old
+ new
@@ -10,14 +10,10 @@
SimpleCov.start do
add_filter 'test'
end
end
-require 'minitest'
-require "codeclimate-test-reporter"
-CodeClimate::TestReporter.start
-
require 'minitest/autorun'
require 'digest/sha2'
require 'rubygems'
gem 'activerecord', ENV['ACTIVE_RECORD_VERSION'] if ENV['ACTIVE_RECORD_VERSION']
require 'active_record'
@@ -28,9 +24,11 @@
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$:.unshift(File.dirname(__FILE__))
require 'attr_encrypted'
puts "\nTesting with ActiveRecord #{ActiveRecord::VERSION::STRING rescue ENV['ACTIVE_RECORD_VERSION']}"
+
+Minitest::Test = Minitest::Unit::TestCase if ActiveRecord::VERSION::STRING >= '4.0.0'
DB = Sequel.sqlite
# The :after_initialize hook was removed in Sequel 4.0
# and had been deprecated for a while before that: