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:
commit
cb902732be
8 changed files with 6 additions and 29 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue