The controller now responds with a standard HTTP redirect, instead of an app-specific redirect encoded in the body.
This commit is contained in:
David Cook
2026-01-22 12:45:01 +11:00
parent 1e2b8bad3f
commit 30804da259

View File

@@ -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