14 lines
322 B
Ruby
14 lines
322 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 { '{My-$3cure-p4ssWord}' }
|
|
end
|
|
end
|
|
end
|