#464 new
Jacek Becela

Enable loading fixtures from arbitrary locations

Reported by Jacek Becela | July 9th, 2008 @ 09:56 PM | in No-Milestone-Assigned

This patch enables loading fixtures from subdirectories of spec/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 spec:db:fixtures:load FIXTURES_DIR=real and expect to spec/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.

I also submitted very similar patch to Rails: http://rails.lighthouseapp.com/p...

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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

Behaviour Driven Development for Ruby.

Shared Ticket Bins

People watching this ticket