Skip to content
代码片段 群组 项目
未验证 提交 1f5160ad 编辑于 作者: Alper Akgun's avatar Alper Akgun
浏览文件

Update onboarding template project

Changelog: fixed
EE: true
上级 7a939996
No related branches found
No related tags found
无相关合并请求
...@@ -4,20 +4,13 @@ module Registrations::CreateProject ...@@ -4,20 +4,13 @@ module Registrations::CreateProject
extend ActiveSupport::Concern extend ActiveSupport::Concern
include LearnGitlabHelper include LearnGitlabHelper
LEARN_GITLAB_TEMPLATE = 'learn_gitlab.tar.gz'
LEARN_GITLAB_ULTIMATE_TEMPLATE = 'learn_gitlab_ultimate_trial.tar.gz' LEARN_GITLAB_ULTIMATE_TEMPLATE = 'learn_gitlab_ultimate_trial.tar.gz'
included do included do
private private
def learn_gitlab_template_path def learn_gitlab_template_path
file = if helpers.in_trial_onboarding_flow? Rails.root.join('vendor', 'project_templates', LEARN_GITLAB_ULTIMATE_TEMPLATE)
LEARN_GITLAB_ULTIMATE_TEMPLATE
else
LEARN_GITLAB_TEMPLATE
end
Rails.root.join('vendor', 'project_templates', file)
end end
def create_learn_gitlab_project def create_learn_gitlab_project
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
using RSpec::Parameterized::TableSyntax using RSpec::Parameterized::TableSyntax
where(:trial, :project_name, :template) do where(:trial, :project_name, :template) do
false | 'Learn GitLab' | described_class::LEARN_GITLAB_TEMPLATE false | 'Learn GitLab' | described_class::LEARN_GITLAB_ULTIMATE_TEMPLATE
true | 'Learn GitLab - Ultimate trial' | described_class::LEARN_GITLAB_ULTIMATE_TEMPLATE true | 'Learn GitLab - Ultimate trial' | described_class::LEARN_GITLAB_ULTIMATE_TEMPLATE
end end
......
文件已删除
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册