#10 new
Zach Dennis

Allow db:seed to be told where to find fixtures

Reported by Zach Dennis | July 16th, 2008 @ 04:41 PM

The RAILS_ROOT/db/fixtures/ is a great default for where fixtures should be stored, but for RSpec stories I like to store them in stories/fixtures so I can seed my customer tests.

I have modified the rake task so I can the following in my stories/helper.rb:

with_environment "FIXTURE_PATH" => "stories/fixtures" do
  system "rake db:seed"

See the patch/commit at http://github.com/zdennis/seed-f...

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

An attempt to simplify the usage of seed data in Rails applications through a dead simple API.

People watching this ticket