fix(expiration_banner.message): miss match when procedure was not expirable ; always showing expiration message
This commit is contained in:
parent
ea28555376
commit
f84b69276e
4 changed files with 22 additions and 6 deletions
|
@ -23,6 +23,16 @@ describe 'instructeur/dossiers/expiration_banner.html.haml', type: :view do
|
|||
it 'render estimated expiration date' do
|
||||
expect(subject).not_to have_selector('.expires_at')
|
||||
end
|
||||
|
||||
context 'with dossier.en_instruction?' do
|
||||
let(:state) { :en_instruction }
|
||||
let(:attributes) { {} }
|
||||
|
||||
it 'does not render estimated expiration date' do
|
||||
expect(subject).not_to have_selector('p.expires_at_en_instruction',
|
||||
text: I18n.t("shared.dossiers.header.expires_at.en_instruction"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'with procedure having procedure_expires_when_termine_enabled enabled' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue