# Testing: use\_transactional\_fixtures not working

**URL:** <https://www.ruby-forum.com/t/testing-use-transactional-fixtures-not-working/71947>\
**Category:** Rails\
**Created:** [October 12, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/testing-use-transactional-fixtures-not-working/71947 "2006-10-12T18:27:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjgp2](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/eb8c5e/32.png) [@mjgp2](https://www.ruby-forum.com/u/mjgp2)\
**Post date:** [October 12, 2006, 6:27pm UTC](https://www.ruby-forum.com/t/testing-use-transactional-fixtures-not-working/71947/1 "2006-10-12T18:27:17Z")

</div>

Ok folks, so I have a controller test that passes on the first run  
through, but if I run the test again it fails as changes made to the  
database within the test have been committed.

Surely even if though there is a transaction block which is committed  
within the commands that the test executes, it will be within the  
transaction wrapping the whole test, and so will be rolled back when the  
test completes? If this is the case, why is it not happening here?

Thanks!

Matt
