instructeurs: create without providing the email
This commit is contained in:
parent
f131dbb80d
commit
f8358b3ae9
7 changed files with 22 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue