demarches-normaliennes/spec/factories/gestionnaire.rb
2023-10-03 13:51:57 +02:00

12 lines
325 B
Ruby

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) }
password { 'somethingverycomplated!' }
end
end
end