diff --git a/test/paranoia_test.rb b/test/paranoia_test.rb index 8c4c2d3f..79cafc65 100644 --- a/test/paranoia_test.rb +++ b/test/paranoia_test.rb @@ -5,6 +5,10 @@ test_framework = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase +if ActiveRecord::Base.respond_to?(:raise_in_transactional_callbacks=) + ActiveRecord::Base.raise_in_transactional_callbacks = true +end + def connect! ActiveRecord::Base.establish_connection :adapter => 'sqlite3', database: ':memory:' end