models: require belong_to associations on attestation_template
This commit is contained in:
parent
1ea4c2aa36
commit
aefdd5d2a1
4 changed files with 6 additions and 4 deletions
|
@ -563,7 +563,7 @@ describe Dossier do
|
|||
# - with a dash in the champ libelle / tag
|
||||
let(:title) { "voici --specified champ-in-title-- un --unspecified champ-in-title-- beau --specified annotation privée-in-title-- titre --unspecified annotation privée-in-title-- non --numéro du dossier--" }
|
||||
let(:body) { "voici --specified champ-in-body-- un --unspecified champ-in-body-- beau --specified annotation privée-in-body-- body --unspecified annotation privée-in-body-- non ?" }
|
||||
let(:attestation_template) { create(:attestation_template, title: title, body: body, activated: activated) }
|
||||
let(:attestation_template) { build(:attestation_template, title: title, body: body, activated: activated) }
|
||||
|
||||
context "which is disabled" do
|
||||
let(:activated) { false }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue