specs: fix some test helpers

This commit is contained in:
Pierre de La Morinerie 2020-06-29 17:48:01 +02:00
parent 2261c6c5d2
commit 0a3b4f7476

View file

@ -20,7 +20,7 @@ describe Manager::AdministrateursController, type: :controller do
render_views
it 'displays form to create a new admin' do
get :new
expect(response).to be_success
expect(response).to have_http_status(:success)
end
end
@ -64,7 +64,7 @@ describe Manager::AdministrateursController, type: :controller do
it 'searches admin by email' do
get :index, params: { search: administrateur.email }
expect(response).to be_success
expect(response).to have_http_status(:success)
end
end
end