Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Enable loading fixtures from arbitrary locations

#586

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.

Reported by Jacek Becela · July 9th, 2008 @ 08:36 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [697ee1a50dea7580a7240535d3ad89d2d090721a]) Enable loading fixtures from arbitrary locations. [#586 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    July 14th, 2008 @ 01:44 AM