demarches-normaliennes/spec/factories/expert.rb

13 lines
294 B
Ruby
Raw Normal View History

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) }
password { 'somethingverycomplated!' }
end
end
end