This project is archived and is in readonly mode.

#6590 new
Tyler Hunt

Transaction Callbacks Aren't Called by Transactional Fixtures

Reported by Tyler Hunt | March 17th, 2011 @ 02:01 PM

Because the logic for handling transaction callbacks (after_commit and after_rollback) is tied up inside ActiveRecord::ConnectionAdapters::DatabaseStatements#transaction, and because the transactional fixtures are implemented by manually calling begin_db_transaction and rollback_db_transaction rather than using a transaction block, the transaction callbacks aren't executed at the end of the test run as should be expected.

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket