create generic labels for old and new procedure

This commit is contained in:
Lisa Durand 2024-09-25 15:08:10 +02:00
parent 9dd224c3c7
commit 96cfb6cc43
No known key found for this signature in database
GPG key ID: 0DF91F2CA1E8B816
4 changed files with 43 additions and 0 deletions

View file

@ -513,6 +513,11 @@ describe Administrateurs::ProceduresController, type: :controller do
expect(response).to redirect_to(champs_admin_procedure_path(Procedure.last))
expect(flash[:notice]).to be_present
end
it "create generic labels" do
expect(subject.procedure_labels.size).to eq(3)
expect(subject.procedure_labels.first.name).to eq('à relancer')
end
end
describe "procedure is saved with custom retention period" do