From a5752c0286cd5e7d3a99b37ba2528a5031c50cf2 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Tue, 26 Dec 2023 16:05:50 +0100 Subject: [PATCH] redict location is on headers["Location"] instead of body --- 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