Seems loading seed data not work for me
my test_helper.rb file:
ENV['RAILS_ENV'] ||= 'test'
require_relative '../config/environment'
require 'rails/test_help'
class ActiveSupport::TestCase
fixtures :all
Rails.application.load_seed
end
In rails console Rails.application.load_seed
works fine
Aucun commentaire:
Enregistrer un commentaire