views: tell an attestation will be sent only if it is true
Previously the message stating "an attestation will be sent" was displayed even when the attestation was disabled.
This commit is contained in:
parent
17d8167390
commit
0064c2c610
2 changed files with 4 additions and 2 deletions
|
@ -20,6 +20,7 @@ describe 'instructeurs/dossiers/state_button_motivation.html.haml', type: :view
|
|||
end
|
||||
|
||||
context 'without an attestation preview' do
|
||||
it { expect(rendered).not_to have_text("envoie automatiquement une attestation") }
|
||||
it { expect(rendered).not_to have_text("Voir l'attestation") }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue