Discard demarches from manager
This commit is contained in:
parent
89f1f70f0d
commit
876e05aed3
10 changed files with 54 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue