Test: use APPLICATION_NAME to deal nicely with custom configuration
This commit is contained in:
parent
12024a14f7
commit
a596df9a4a
2 changed files with 4 additions and 4 deletions
|
@ -8,14 +8,14 @@ RSpec.describe ConservationDeDonneesHelper, type: :helper do
|
|||
let(:dans_ds) { 3 }
|
||||
let(:hors_ds) { 6 }
|
||||
|
||||
it { is_expected.to eq(["Dans demarches-simplifiees.fr : 3 mois", "Par l’administration : 6 mois"]) }
|
||||
it { is_expected.to eq(["Dans #{APPLICATION_NAME} : 3 mois", "Par l’administration : 6 mois"]) }
|
||||
end
|
||||
|
||||
context "when only in-app retention time is set" do
|
||||
let(:dans_ds) { 3 }
|
||||
let(:hors_ds) { nil }
|
||||
|
||||
it { is_expected.to eq(["Dans demarches-simplifiees.fr : 3 mois"]) }
|
||||
it { is_expected.to eq(["Dans #{APPLICATION_NAME} : 3 mois"]) }
|
||||
end
|
||||
|
||||
context "when only out of app retention time is set" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue