From 30804da259e415ee75186f1ffc9fe443567436cb Mon Sep 17 00:00:00 2001 From: David Cook Date: Thu, 22 Jan 2026 12:45:01 +1100 Subject: [PATCH] Fix spec The controller now responds with a standard HTTP redirect, instead of an app-specific redirect encoded in the body. --- spec/controllers/spree/user_sessions_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/spree/user_sessions_controller_spec.rb b/spec/controllers/spree/user_sessions_controller_spec.rb index 7bc3970938..b99d7c1cec 100644 --- a/spec/controllers/spree/user_sessions_controller_spec.rb +++ b/spec/controllers/spree/user_sessions_controller_spec.rb @@ -16,7 +16,7 @@ RSpec.describe Spree::UserSessionsController do spree_post :create, spree_user: { email: user.email, password: user.password } expect(response).to have_http_status(:found) - expect(response.body).to match(root_path).and match("redirect") + expect(response.location).to eq root_url end end @@ -27,7 +27,7 @@ RSpec.describe Spree::UserSessionsController do spree_post :create, spree_user: { email: user.email, password: user.password } expect(response).to have_http_status(:found) - expect(response.body).to match(checkout_path).and match("redirect") + expect(response.location).to eq checkout_url end end end