# Wild ideas about fixtures

**URL:** <https://www.ruby-forum.com/t/wild-ideas-about-fixtures/68659>\
**Category:** Rails\
**Created:** [February 15, 2006, 4:33pm UTC](https://www.ruby-forum.com/t/wild-ideas-about-fixtures/68659 "2006-02-15T16:33:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeroen\_van\_Doorn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@Jeroen\_van\_Doorn](https://www.ruby-forum.com/u/Jeroen_van_Doorn)\
**Post date:** [February 15, 2006, 4:33pm UTC](https://www.ruby-forum.com/t/wild-ideas-about-fixtures/68659/1 "2006-02-15T16:33:05Z")

</div>

Hello everybody,

I wanted to bring testing to a higher level  
The first idea was calling a rake script from within the test\_helper …  
to be honest, I don’t have a clue  
how to do this … though I’m probably not going to do this, I would  
love to know how I could if I wanted too.

The second Idea was using using the Fixture script from Geoffrey  
Grosenbach. also in test\_helper,  
this doesn’t work because he uses (obviously) the test database and not  
the development database  
Is there a possibility to call this script before RoR switches to test  
modus.

Maybe the first thing wasn’t such a bad thing, because I reuse the code  
which is written for rake…  
I could just copy paste it to the helper … but it’s already somewhere  
so it sounds like duplication.

Anybody on automating creation of test\_data / fixtures from the  
development database ?

Kind Regards,  
Jeroen van Doorn
