I\'m using rspec for testing w my rails 3 app. I need to seed the database before the tests start. How can I seed the database with the following:
/db/seeds.rb>
To load seeds in rspec you need to add it after database cleanup in confg.before(:suite) in spec_helper
config.before(:suite) do DatabaseCleaner.clean_with(:truncation) load Rails.root.join('db', 'seeds.rb') end