From 6cd91015cff9c2036d55466288de82a66d72de33 Mon Sep 17 00:00:00 2001 From: Corinne Durrmeyer Date: Wed, 7 Aug 2024 17:39:13 +0200 Subject: [PATCH] Update spec file --- spec/helpers/conservation_de_donnees_helper_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/helpers/conservation_de_donnees_helper_spec.rb b/spec/helpers/conservation_de_donnees_helper_spec.rb index a7307984d..ff9319c79 100644 --- a/spec/helpers/conservation_de_donnees_helper_spec.rb +++ b/spec/helpers/conservation_de_donnees_helper_spec.rb @@ -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