Fix DEPRECATION WARNING for spec/controllers/users/dossiers/*.rb
This commit is contained in:
parent
5750eb1aa5
commit
cea85f2d49
3 changed files with 5 additions and 7 deletions
|
@ -9,7 +9,7 @@ describe Users::Dossiers::AddSiretController, type: :controller do
|
|||
sign_in dossier.user
|
||||
end
|
||||
|
||||
subject { get :show, dossier_id: dossier.id }
|
||||
subject { get :show, params:{dossier_id: dossier.id }}
|
||||
|
||||
context 'when dossier is not attached at a procedure with individual siret attribut' do
|
||||
it { is_expected.to redirect_to users_dossiers_path }
|
||||
|
|
|
@ -12,7 +12,7 @@ describe Users::Dossiers::CommentairesController, type: :controller do
|
|||
sign_in invite.user
|
||||
dossier.replied!
|
||||
|
||||
post :create, dossier_id: dossier.id, texte_commentaire: texte_commentaire
|
||||
post :create, params:{dossier_id: dossier.id, texte_commentaire: texte_commentaire}
|
||||
dossier.reload
|
||||
end
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
RSpec.describe Users::Dossiers::InvitesController, type: :controller do
|
||||
|
||||
|
||||
describe '#authenticate_user!' do
|
||||
let(:user) { create :user }
|
||||
let(:invite) { create :invite }
|
||||
|
@ -8,7 +6,7 @@ RSpec.describe Users::Dossiers::InvitesController, type: :controller do
|
|||
context 'when email is not set' do
|
||||
context 'when user is not connected' do
|
||||
before do
|
||||
get :show, id: invite.id
|
||||
get :show, params: {id: invite.id}
|
||||
end
|
||||
|
||||
it { is_expected.to redirect_to new_user_session_path }
|
||||
|
@ -20,7 +18,7 @@ RSpec.describe Users::Dossiers::InvitesController, type: :controller do
|
|||
before do
|
||||
sign_in invite.user
|
||||
|
||||
get :show, id: invite.id
|
||||
get :show, params: {id: invite.id}
|
||||
end
|
||||
|
||||
# it { expect(response.status).to eq 200 }
|
||||
|
@ -29,7 +27,7 @@ RSpec.describe Users::Dossiers::InvitesController, type: :controller do
|
|||
|
||||
context 'when email is set' do
|
||||
before do
|
||||
get :show, id: invite.id, email: email
|
||||
get :show, params: {id: invite.id, email: email}
|
||||
end
|
||||
|
||||
context 'when email is blank' do
|
||||
|
|
Loading…
Reference in a new issue