Commit 1f5160ad authored by Alper Akgun's avatar Alper Akgun

Update onboarding template project

Changelog: fixed
EE: true
parent 7a939996
...@@ -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 @@ RSpec.shared_examples "Registrations::ProjectsController POST #create" do ...@@ -43,7 +43,7 @@ RSpec.shared_examples "Registrations::ProjectsController POST #create" do
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
......
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