Add missing params wrapping to some tests

This commit is contained in:
gregoirenovel 2018-01-23 18:16:44 +01:00
parent 75c8c7c0b3
commit 5b706cc7d4
5 changed files with 17 additions and 13 deletions

View file

@ -9,7 +9,7 @@ describe Manager::AdministrateursController, type: :controller do
sign_in administration
end
subject { post :create, administrateur: { email: email } }
subject { post :create, params: { administrateur: { email: email } } }
context 'when email and password are correct' do
it 'add new administrateur in database' do

View file

@ -5,7 +5,7 @@ describe Manager::ProceduresController, type: :controller do
before do
sign_in administration
post :whitelist, id: procedure.id
post :whitelist, params: { id: procedure.id }
procedure.reload
end