2019-12-03 18:36:50 +01:00
|
|
|
FactoryBot.define do
|
|
|
|
factory :export do
|
|
|
|
format { :csv }
|
2020-07-20 17:22:44 +02:00
|
|
|
groupe_instructeurs { [association(:groupe_instructeur)] }
|
2021-03-31 18:19:28 +02:00
|
|
|
|
|
|
|
after(:build) do |export, _evaluator|
|
|
|
|
export.key = Export.generate_cache_key(export.groupe_instructeurs)
|
|
|
|
end
|
2019-12-03 18:36:50 +01:00
|
|
|
end
|
|
|
|
end
|