2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-09-04 12:07:04 +02:00
|
|
|
FactoryBot.define do
|
|
|
|
sequence(:gestionnaire_email) { |n| "gestionnaire#{n}@demarches-simplifiees.fr" }
|
|
|
|
|
|
|
|
factory :gestionnaire do
|
|
|
|
user { association :user, email: email, password: password }
|
|
|
|
|
|
|
|
transient do
|
|
|
|
email { generate(:gestionnaire_email) }
|
2024-09-03 17:45:37 +02:00
|
|
|
password { '{My-$3cure-p4ssWord}' }
|
2023-09-04 12:07:04 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|