# Turning fixtures off?

**URL:** <https://www.ruby-forum.com/t/turning-fixtures-off/159425>\
**Category:** Rails\
**Created:** [February 4, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/turning-fixtures-off/159425 "2009-02-04T13:25:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [February 4, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/turning-fixtures-off/159425/1 "2009-02-04T13:25:27Z")

</div>

I just finished migrating from fixtures to factory\_girl factories. It  
works really great and now I want to get rid of all the old fixtures.  
But there must be more to it than just deleting the “fixtures”  
directory… The terminal goes crazy with errors if I do that. Removing  
all content between “class Test::Unit::TestCase” and “end” doesn’t help  
either…

To everyone who saw the light and started using factories: How did you  
get rid of the fixtures?

---

<div class="post-metadata">

**Author:** ![davidtl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/35a633/32.png) [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Post date:** [February 4, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/turning-fixtures-off/159425/2 "2009-02-04T13:26:46Z")

</div>

David T. wrote:

> Removing  
> all content between “class Test::Unit::TestCase” and “end” doesn’t help  
> either…

In test\_helper.rb, of course. I assumed that would somehow turn off  
fixtures, because it says stuff like “fixtures :all”, etc.
