Adapt spec to the move of the controller, in prod the call to request.env['PATH_INFO'] will work correctly

This commit is contained in:
Luis Ramos
2020-10-31 10:44:19 +00:00
parent af713385d8
commit fa77204e14

View File

@@ -10,7 +10,7 @@ describe Admin::BaseController, type: :controller do
it "redirects to Angular login" do
spree_get :index
expect(response).to redirect_to root_path(anchor: "login?after_login=/spree/admin/base")
expect(response).to redirect_to root_path(anchor: "login?after_login=/admin/base")
end
describe "rendering as json ActiveModelSerializer" do