instructeurs: create without providing the email

This commit is contained in:
Pierre de La Morinerie 2019-10-16 12:15:47 +00:00
parent f131dbb80d
commit f8358b3ae9
7 changed files with 22 additions and 15 deletions

View file

@ -2,9 +2,8 @@ FactoryBot.define do
sequence(:instructeur_email) { |n| "inst#{n}@inst.com" }
factory :instructeur do
email { generate(:instructeur_email) }
transient do
email { generate(:instructeur_email) }
password { 'somethingverycomplated!' }
end