transition from accepte to instruction as superadmin
This commit is contained in:
parent
85378ae193
commit
38b48f4217
7 changed files with 65 additions and 3 deletions
|
@ -11,4 +11,17 @@ describe Manager::DossiersController, type: :controller do
|
|||
|
||||
it { expect(dossier.hidden_at).not_to be_nil }
|
||||
end
|
||||
|
||||
describe '#repasser_en_instruction' do
|
||||
let(:administration) { create :administration }
|
||||
let!(:dossier) { create(:dossier, :accepte) }
|
||||
|
||||
before do
|
||||
sign_in administration
|
||||
post :repasser_en_instruction, params: { id: dossier.id }
|
||||
dossier.reload
|
||||
end
|
||||
|
||||
it { expect(dossier.en_instruction?).to be true }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue