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

14 lines
325 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
sequence(:create_expert_email) { |n| "expert#{n}@expert.com" }
factory :expert do
user { association :user, email: email, password: password }
transient do
email { generate(:expert_email) }
password { 'somethingverycomplated!' }
end
end
end