title: Auto-load the seed data from db/seeds.rb with rake
body: <p>I'm using <code>rails-rspec</code> gem and I have several specs (models, controllers, etc).  When I run:</p>
  
  <pre><code>bundle exec rake
  </code></pre>
  
  <p>everything is tested.  However, I would like to improve my specs by seeding some data (from db/seeds.rb) just after the database is created (in test environment).</p>
  
  <p>My spec/spec_helper.rb file looks like this:</p>
  
  <pre><code>ENV["RAILS_ENV"] ||= 'test'
  
  require File.expand_path("../../config/environment", __FILE__)
  require 'rspec/rails'
  require 'capybara/rspec'
  require 'ruby-debug'
  
  # Requires supporting ruby files with custom matchers and macros, etc,
  # in spec/support/ and its subdirectories.
  Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
  
  RSpec.configure do |config|
    config.mock_with :rspec
  
    # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
    config.fixture_path = "#{::Rails.root}/spec/fixtures"
  
    # If you're not using ActiveRecord, or you'd prefer not to run each of your
    # examples within a transaction, remove the following line or assign false
    # instead of true.
    config.use_transactional_fixtures = false
  
    config.include SpecHelper
  
    config.before(:suite) do
      DatabaseCleaner.strategy = :truncation
      DatabaseCleaner.clean_with(:truncation)
    end
  
    config.before(:each) do
      DatabaseCleaner.start
      stub_xmpp_rest_client!  
    end
  
    config.after(:each) do
      DatabaseCleaner.clean
    end
  
    config.include Devise::TestHelpers, :type =&gt; :controller
    config.include Delorean
    config.after(:each) { back_to_the_present }
    config.include Factory::Syntax::Methods
    config.extend ControllerMacros, :type =&gt; :controller
  end
  </code></pre>
  
  <p>What could do the best way to do so?  Thanks.</p>