2018-04-13 16:56:00 +02:00
|
|
|
describe NewAdministrateur::ProceduresController, type: :controller do
|
|
|
|
let(:admin) { create(:administrateur) }
|
|
|
|
|
|
|
|
describe '#apercu' do
|
|
|
|
let(:procedure) { create(:procedure) }
|
|
|
|
|
|
|
|
before do
|
2019-08-09 10:46:39 +02:00
|
|
|
sign_in(admin.user)
|
2018-04-13 16:56:00 +02:00
|
|
|
get :apercu, params: { id: procedure.id }
|
|
|
|
end
|
|
|
|
|
|
|
|
it { expect(response).to have_http_status(:ok) }
|
|
|
|
end
|
|
|
|
end
|