Update spec file
This commit is contained in:
parent
acdd259e1d
commit
6cd91015cf
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue