Revert "4127 fix superadmin supprime compte usager"

This commit is contained in:
Pierre de La Morinerie 2020-01-21 18:57:54 +01:00 committed by GitHub
parent 65a78b682f
commit 751f24f7bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 22 additions and 150 deletions

View file

@ -1,17 +0,0 @@
describe Manager::InstructeursController, type: :controller do
let(:administration) { create(:administration) }
describe '#delete' do
let!(:instructeur) { create(:instructeur) }
before { sign_in administration }
subject { delete :delete, params: { id: instructeur.id } }
it 'deletes the instructeur' do
subject
expect(Instructeur.find_by(id: instructeur.id)).to be_nil
end
end
end