Commit ea1b4545 authored by Thong Kuah's avatar Thong Kuah

Merge branch 'revert-7294a17d' into 'master'

Revert: New checkout flow for personal namespace on a free plan

See merge request gitlab-org/gitlab!41934
parents 8e4df1a6 060e259d
...@@ -21,6 +21,7 @@ module BillingPlansHelper ...@@ -21,6 +21,7 @@ module BillingPlansHelper
end end
def use_new_purchase_flow?(namespace) def use_new_purchase_flow?(namespace)
namespace.group? &&
namespace.actual_plan_name == Plan::FREE namespace.actual_plan_name == Plan::FREE
end end
......
---
title: New checkout flow for personal namespace on gitlab.com
merge_request: 41795
author:
type: changed
...@@ -63,7 +63,7 @@ RSpec.describe BillingPlansHelper do ...@@ -63,7 +63,7 @@ RSpec.describe BillingPlansHelper do
subject { helper.use_new_purchase_flow?(namespace) } subject { helper.use_new_purchase_flow?(namespace) }
it do it do
result = plan == Plan::FREE result = type == 'Group' && plan == Plan::FREE
is_expected.to be(result) is_expected.to be(result)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment