gestionnaire: display draft procedures in the list

Fix #3088
This commit is contained in:
Pierre de La Morinerie 2018-12-03 12:57:59 +00:00
parent 421f125c45
commit e206f3d4d4
3 changed files with 35 additions and 5 deletions

View file

@ -134,6 +134,15 @@ FactoryBot.define do
end
end
trait :archived_automatically do
# For now the behavior is the same than :archived
# (it may be different in the future though)
after(:build) do |procedure, _evaluator|
procedure.publish!(generate(:published_path))
procedure.archive!
end
end
trait :hidden do
after(:build) do |procedure, _evaluator|
procedure.publish!(generate(:published_path))