Update spec/lib/tasks/deployment/20220112184331_revise_attestation_templates_spec.rb

Co-authored-by: Pierre de La Morinerie <kemenaran@gmail.com>
This commit is contained in:
Paul Chavard 2022-02-01 18:12:10 +01:00 committed by Paul Chavard
parent 1fc7db2562
commit 77e42dd0e2

View file

@ -11,8 +11,8 @@ describe '20220112184331_revise_attestation_templates' do
after { rake_task.reenable } after { rake_task.reenable }
context 'add attestation_template_id' do describe 'revise_attestation_templates' do
it 'to revisions' do it 'attaches the attestation_template to the latest revision (without removing the link between attestation_template and procedure for now)' do
expect(attestation_template.procedure.revisions.first.attestation_template_id).to be_nil expect(attestation_template.procedure.revisions.first.attestation_template_id).to be_nil
run_task run_task
expect(attestation_template.procedure_id).to eq(procedure.id) expect(attestation_template.procedure_id).to eq(procedure.id)