parent
ab1928dc33
commit
b8296c6d4d
17 changed files with 242 additions and 78 deletions
|
@ -162,8 +162,13 @@ FactoryBot.define do
|
|||
|
||||
factory :champ_titre_identite, class: 'Champs::TitreIdentiteChamp' do
|
||||
type_de_champ { association :type_de_champ_titre_identite, procedure: dossier.procedure }
|
||||
transient do
|
||||
skip_default_attachment { false }
|
||||
end
|
||||
|
||||
after(:build) do |champ, evaluator|
|
||||
next if evaluator.skip_default_attachment
|
||||
|
||||
after(:build) do |champ, _evaluator|
|
||||
champ.piece_justificative_file.attach(
|
||||
io: StringIO.new("toto"),
|
||||
filename: "toto.png",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue