Update spec file

This commit is contained in:
Corinne Durrmeyer 2024-08-07 17:39:13 +02:00
parent acdd259e1d
commit 6cd91015cf
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -4,9 +4,7 @@ RSpec.describe ConservationDeDonneesHelper, type: :helper do
let(:procedure) { build(:procedure, duree_conservation_dossiers_dans_ds: dans_ds) }
describe "politiques_conservation_de_donnees" do
let(:app_name) { "une superbe application" }
before { Current.application_name = app_name }
let(:label) { "Rétention et archivage des données" }
subject { politiques_conservation_de_donnees(procedure) }
@ -14,7 +12,7 @@ RSpec.describe ConservationDeDonneesHelper, type: :helper do
let(:dans_ds) { 3 }
let(:hors_ds) { 6 }
it { is_expected.to eq(["#{app_name} : 3 mois"]) }
it { is_expected.to eq(["#{label} : 3 mois"]) }
end
context "when the retention time is not set" do