This project is archived and is in readonly mode.

#586 ✓resolved
Jacek Becela

Enable loading fixtures from arbitrary locations

Reported by Jacek Becela | July 9th, 2008 @ 08:36 PM | in 2.x

This patch enables loading fixtures from subdirectories of test/fixtures.

This allows to have two or more sets of fixtures in a project - very helpful if someone needs a lot of typical "lorem ipsum" fixtures (i.e. when developing layouts) while others need compact fixtures to be used solely for tests.

You can rake db:fixtures:load FIXTURES_DIR=real and expect to test/fixtures/real/* to be loaded.

This patch has no tests - I'd be happy to write them if someone points me in the right direction (are there any tests for rake tasks in Rails?) My team was using this patch for last few months and we have had no problems at all.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket