demarches-normaliennes/spec/factories/gestionnaire.rb
2024-08-22 09:26:48 +02:00

14 lines
356 B
Ruby

# frozen_string_literal: true
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