From 091023baf79c33f2e854a3dd540ac69b7f85b5e0 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Tue, 27 Feb 2024 19:18:49 +0100 Subject: [PATCH] on redirect, the body will no longer include the target link for more details: https://github.com/rails/rails/commit/c2e756a944fd3ca2efa58bd285c0e75e0b4794ab --- spec/controllers/user_confirmations_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/user_confirmations_controller_spec.rb b/spec/controllers/user_confirmations_controller_spec.rb index 40be9eebb16..dd4897c4e11 100644 --- a/spec/controllers/user_confirmations_controller_spec.rb +++ b/spec/controllers/user_confirmations_controller_spec.rb @@ -55,7 +55,7 @@ unconfirmed_user.save! spree_get :show, confirmation_token: unconfirmed_user.confirmation_token expect(response).to be_redirect - expect(response.body).to include spree.edit_spree_user_password_path + expect(response.headers["Location"]).to include spree.edit_spree_user_password_path end end end