Merge pull request #10710 from demarches-simplifiees/remove-unused-hidden-at-for-dossiers-ldu

[Tech] Retirer la colonne obsolète 'hidden_at' des dossiers (part 1)
This commit is contained in:
Colin Darie 2024-09-02 12:41:28 +00:00 committed by GitHub
commit cb902732be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 6 additions and 29 deletions

View file

@ -62,13 +62,6 @@ describe Champ do
describe "associations" do
it { is_expected.to belong_to(:dossier) }
context 'when the parent dossier is discarded' do
let(:discarded_dossier) { create(:dossier, :discarded) }
subject(:champ) { discarded_dossier.champs_public.first }
it { expect(champ.reload.dossier).to eq discarded_dossier }
end
end
describe "normalization" do

View file

@ -37,7 +37,6 @@ RSpec.describe DossierCloneConcern do
expect(new_dossier.en_instruction_at).to be_nil
expect(new_dossier.for_procedure_preview).to be_falsey
expect(new_dossier.groupe_instructeur_updated_at).to be_nil
expect(new_dossier.hidden_at).to be_nil
expect(new_dossier.hidden_by_administration_at).to be_nil
expect(new_dossier.hidden_by_reason).to be_nil
expect(new_dossier.hidden_by_user_at).to be_nil

View file

@ -935,7 +935,6 @@ describe Dossier, type: :model do
context 'en_construction' do
it 'hide the dossier but does not discard' do
expect(dossier.hidden_at).to be_nil
expect(dossier.hidden_by_user_at).to be_present
end