app: remove old Admin::InstructeursController

It was only hosting the deprecated "Instructeurs globally attached to
this admin", which wasn't used anywhere in the app anymore.
This commit is contained in:
Pierre de La Morinerie 2021-08-31 15:54:45 -05:00
parent e87ab1dc40
commit 0f9d7d6b8c
9 changed files with 6 additions and 333 deletions

View file

@ -1,31 +0,0 @@
describe 'admin/instructeurs/index.html.haml', type: :view do
let(:admin) { create(:administrateur) }
before do
assign(:instructeurs, (smart_listing_create :instructeurs,
admin.instructeurs,
partial: "admin/instructeurs/list",
array: true))
assign(:instructeur, create(:instructeur))
end
context 'Aucun instructeur' do
before do
render
end
it { expect(rendered).to have_content('Aucun instructeur') }
end
context 'Ajout d\'un instructeur' do
before do
create(:instructeur, administrateurs: [admin])
admin.reload
assign(:instructeurs, (smart_listing_create :instructeurs,
admin.instructeurs,
partial: "admin/instructeurs/list",
array: true))
render
end
it { expect(rendered).to match(/inst\d+@inst.com/) }
end
end