Commit b8cbdf9c authored by Alper Akgun's avatar Alper Akgun

New checkout flow for personal namespace on gitlab.com

parent 0a8ed206
...@@ -21,8 +21,7 @@ module BillingPlansHelper ...@@ -21,8 +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
def show_contact_sales_button?(purchase_link_action) def show_contact_sales_button?(purchase_link_action)
......
---
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 = type == 'Group' && plan == Plan::FREE result = 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