fix specs
This commit is contained in:
parent
b586f23009
commit
8722a10d63
2 changed files with 1 additions and 12 deletions
|
@ -1214,10 +1214,6 @@ describe Instructeurs::DossiersController, type: :controller do
|
|||
expect(DeletedDossier.where(dossier_id: dossier.id).count).to eq(0)
|
||||
end
|
||||
|
||||
it 'does not discard the dossier' do
|
||||
expect(dossier.reload.hidden_at).to eq(nil)
|
||||
end
|
||||
|
||||
it 'fill hidden by reason' do
|
||||
expect(dossier.reload.hidden_by_reason).not_to eq(nil)
|
||||
expect(dossier.reload.hidden_by_reason).to eq("instructeur_request")
|
||||
|
@ -1240,7 +1236,7 @@ describe Instructeurs::DossiersController, type: :controller do
|
|||
|
||||
context 'with dossier in batch_operation' do
|
||||
let(:batch_operation) { create(:batch_operation, operation: :archiver, dossiers: [dossier], instructeur: instructeur) }
|
||||
it { expect { subject }.not_to change { dossier.reload.hidden_at } }
|
||||
it { expect { subject }.not_to change { dossier.reload.hidden_by_administration_at } }
|
||||
it { is_expected.to redirect_to(instructeur_dossier_path(dossier.procedure, dossier)) }
|
||||
it 'flashes message' do
|
||||
subject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue