Discard demarches from manager

This commit is contained in:
Paul Chavard 2020-03-26 09:08:52 +01:00
parent 89f1f70f0d
commit 876e05aed3
10 changed files with 54 additions and 28 deletions

View file

@ -194,11 +194,7 @@ FactoryBot.define do
end
trait :discarded do
after(:build) do |procedure, _evaluator|
procedure.path = generate(:published_path)
procedure.publish!
procedure.hide!
end
hidden_at { Time.zone.now }
end
trait :whitelisted do