2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-01-15 16:33:36 +01:00
|
|
|
FactoryBot.define do
|
|
|
|
sequence(:create_expert_email) { |n| "expert#{n}@expert.com" }
|
|
|
|
|
|
|
|
factory :expert do
|
2021-10-25 15:50:48 +02:00
|
|
|
user { association :user, email: email, password: password }
|
|
|
|
|
2021-01-15 16:33:36 +01:00
|
|
|
transient do
|
|
|
|
email { generate(:expert_email) }
|
2024-09-03 17:45:37 +02:00
|
|
|
password { '{My-$3cure-p4ssWord}' }
|
2021-01-15 16:33:36 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|