Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nielsjansendk/537513 to your computer and use it in GitHub Desktop.
Save nielsjansendk/537513 to your computer and use it in GitHub Desktop.
Rails 3: If you want to use the file db/seeds.rb to seed you test database before running your specs do this:
Create a file called spec.rake in lib/tasks/
In this file you stick:
task :spec => ["db:test:prepare", "db:seed"]
and that will do the trick
@oddpotato
Copy link

This didn't work for me :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment