params is now an object and no longer a hash

This commit is contained in:
gregoirenovel 2018-01-23 18:28:09 +01:00
parent 6afaf42e6a
commit 3fa9774123
3 changed files with 5 additions and 3 deletions

View file

@ -18,7 +18,7 @@ describe NewUser::DossiersController, type: :controller do
let(:user) { create(:user) }
before do
@controller.params[:dossier_id] = asked_dossier.id
@controller.params = @controller.params.merge(dossier_id: asked_dossier.id)
expect(@controller).to receive(:current_user).and_return(user)
allow(@controller).to receive(:redirect_to)