Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Transaction Callbacks Aren't Called by Transactional Fixtures

#6590

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.

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

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.