demarches-normaliennes/spec/controllers/new_administrateur/procedures_controller_spec.rb

15 lines
336 B
Ruby
Raw Normal View History

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
sign_in admin
get :apercu, params: { id: procedure.id }
end
it { expect(response).to have_http_status(:ok) }
end
end