This project is archived and is in readonly mode.
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
-
Repository July 14th, 2008 @ 01:44 AM
- State changed from new to resolved
(from [697ee1a50dea7580a7240535d3ad89d2d090721a]) Enable loading fixtures from arbitrary locations. [#586 state:resolved]
Signed-off-by: Pratik Naik
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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>