demarches-normaliennes/spec/factories/expert.rb

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