demarches-normaliennes/spec/factories/gestionnaire.rb

15 lines
353 B
Ruby
Raw Permalink Normal View History

# 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) }
2024-09-03 17:45:37 +02:00
password { '{My-$3cure-p4ssWord}' }
end
end
end