Do not export non exportable champs on draft procedures

This commit is contained in:
Paul Chavard 2021-03-23 09:55:37 +01:00
parent 93e1852109
commit 84214f4bd4
3 changed files with 33 additions and 16 deletions

View file

@ -193,6 +193,12 @@ FactoryBot.define do
end
end
trait :with_explication do
after(:build) do |procedure, _evaluator|
build(:type_de_champ_explication, procedure: procedure)
end
end
trait :published do
after(:build) do |procedure, _evaluator|
procedure.path = generate(:published_path)