test/test_helper.rb in attr_encrypted-4.0.0 vs test/test_helper.rb in attr_encrypted-4.1.0

- old
+ new

@@ -14,20 +14,18 @@ SimpleCov.start do add_filter 'test' end require 'minitest/autorun' - -# Rails 4.0.x pins to an old minitest -unless defined?(MiniTest::Test) - MiniTest::Test = MiniTest::Unit::TestCase -end - require 'active_record' -require 'data_mapper' require 'digest/sha2' require 'sequel' -ActiveSupport::Deprecation.behavior = :raise + +if ActiveRecord.respond_to?(:deprecator) + ActiveRecord.deprecator.behavior = :raise +else + ActiveSupport::Deprecation.behavior = :raise +end $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $:.unshift(File.dirname(__FILE__)) require 'attr_encrypted'