demarches-normaliennes/spec/factories/expert.rb

15 lines
322 B
Ruby
Raw Normal View History

# 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
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