I'm trying to test if a seed is successfully run. I currently have the following:
require 'test_helper'
class SeedsTest < ActiveSupport::TestCase
test 'it should successfully run the seeds' do
load Rails.root.join('db/seeds.rb')
end
end
However the load expression simply returns true and does not invoke the seed. Is there a way to do this?
Aucun commentaire:
Enregistrer un commentaire