With RSpec, how to seed the database on load?

In spec_helper.rb or rails_helper.rb:

RSpec.configure do |config|
  config.before(:suite) do
    Rails.application.load_seed # loading seeds
  end
end

Leave a Comment