Procedure: clone the deliberation

This commit is contained in:
simon lehericey 2018-05-31 11:00:22 +02:00
parent fa14db1cbf
commit 0e690c90cc
3 changed files with 25 additions and 10 deletions

View file

@ -135,6 +135,15 @@ FactoryBot.define do
end
end
trait :with_deliberation do
after(:create) do |procedure, _evaluator|
procedure.deliberation.attach(
io: StringIO.new('Hello World'),
filename: 'hello.txt'
)
end
end
trait :with_all_champs_mandatory do
after(:build) do |procedure, _evaluator|
tdcs = []