14 lines
342 B
Ruby
14 lines
342 B
Ruby
describe NewAdministrateur::ProceduresController, type: :controller do
|
|
let(:admin) { create(:administrateur) }
|
|
|
|
describe '#apercu' do
|
|
let(:procedure) { create(:procedure) }
|
|
|
|
before do
|
|
sign_in(admin.user)
|
|
get :apercu, params: { id: procedure.id }
|
|
end
|
|
|
|
it { expect(response).to have_http_status(:ok) }
|
|
end
|
|
end
|