Fix DEPRECATION WARNING for spec/controllers/*.rb
This commit is contained in:
parent
d9a5eff21d
commit
430d32dfca
4 changed files with 11 additions and 10 deletions
|
@ -11,7 +11,7 @@ describe InvitesController, type: :controller do
|
|||
sign_in create(:gestionnaire)
|
||||
end
|
||||
|
||||
subject { post :create, dossier_id: dossier.id, email: email }
|
||||
subject { post :create, params: {dossier_id: dossier.id, email: email} }
|
||||
|
||||
it { expect { subject }.to change(InviteGestionnaire, :count).by(1) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue