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:
parent
1fc7db2562
commit
77e42dd0e2
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue