Do not export non exportable champs on draft procedures
This commit is contained in:
parent
93e1852109
commit
84214f4bd4
3 changed files with 33 additions and 16 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue