I\'m using rails-rspec gem and I have several specs (models, controllers, etc). When I run:
rails-rspec
bundle exec rake
everything is te
copy the seed.rb file inside the config/initializers folder.So seed.rb file will be executed on server start.
Run the below command to fill the test db with the seed.rb data
RAILS_ENV=test rake db:seed