[fix #3427] Administration can soft delete a dossier

This commit is contained in:
simon lehericey 2019-02-13 16:13:37 +01:00 committed by Mathieu Magnin
parent 210088132e
commit a7e068003a
10 changed files with 79 additions and 6 deletions

View file

@ -0,0 +1,14 @@
describe Manager::DossiersController, type: :controller do
describe '#hide' do
let(:administration) { create :administration }
let!(:dossier) { create(:dossier) }
before do
sign_in administration
post :hide, params: { id: dossier.id }
dossier.reload
end
it { expect(dossier.hidden_at).not_to be_nil }
end
end