14 lines
337 B
Ruby
14 lines
337 B
Ruby
FactoryBot.define do
|
|
sequence(:instructeur_email) { |n| "inst#{n}@inst.com" }
|
|
|
|
factory :instructeur do
|
|
bypass_email_login_token { true }
|
|
|
|
user { association :user, email: email, password: password }
|
|
|
|
transient do
|
|
email { generate(:instructeur_email) }
|
|
password { 'somethingverycomplated!' }
|
|
end
|
|
end
|
|
end
|