Skip to content

Commit

Permalink
Avoid raise_in_transactional_callbacks warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Nov 1, 2017
1 parent 1753594 commit bb55ee9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/paranoia_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb55ee9

Please sign in to comment.