Loading fixtures?

How do you load fixtures from specs as you would test?

eg. rake db:fixtures:load RAILS_ENV=development

Do you want to load them in your controller? You can put

class MyController
fixtures :fixturename



rake db:fixtures:load doesn’t work?

loads the test fixtures, instead of the spec fixtures directory.Does it
for you?

no, just database

try this instead: rake spec:db:fixtures:load


2008/2/1, Andrew WC Brown [email protected]:

I see, sorry. I misunderstood.

This is good to know.


On Feb 1, 2008 5:03 AM, Stefan Magnus Landrø [email protected]