admin: durée de conservation des données hors ds n'est plus demandée

La colonne est tout de même gardée en base
This commit is contained in:
Christophe Robillard 2021-02-16 17:56:21 +01:00
parent 2be4bcf22d
commit d55f156aec
6 changed files with 1 additions and 17 deletions

View file

@ -8,7 +8,6 @@ FactoryBot.define do
cadre_juridique { "un cadre juridique important" }
published_at { nil }
duree_conservation_dossiers_dans_ds { 3 }
duree_conservation_dossiers_hors_ds { 6 }
ask_birthday { false }
lien_site_web { "https://mon-site.gouv" }
path { SecureRandom.uuid }

View file

@ -38,7 +38,6 @@ feature 'As an administrateur I wanna create a new procedure', js: true do
expect(find('#procedure_for_individual_true')).to be_checked
expect(find('#procedure_for_individual_false')).not_to be_checked
fill_in 'procedure_duree_conservation_dossiers_dans_ds', with: '3'
fill_in 'procedure_duree_conservation_dossiers_hors_ds', with: '6'
click_on 'Créer la démarche'
expect(page).to have_text('Libelle doit être rempli')

View file

@ -4,6 +4,5 @@ module ProcedureSpecHelper
fill_in 'procedure_description', with: 'description de la procedure'
fill_in 'procedure_cadre_juridique', with: 'cadre juridique'
fill_in 'procedure_duree_conservation_dossiers_dans_ds', with: '3'
fill_in 'procedure_duree_conservation_dossiers_hors_ds', with: '6'
end
end

View file

@ -271,12 +271,6 @@ describe Procedure do
it_behaves_like 'duree de conservation'
end
describe 'duree de conservation hors ds' do
let(:field_name) { :duree_conservation_dossiers_hors_ds }
it_behaves_like 'duree de conservation'
end
end
describe 'active' do