Commit 1aeec043 authored by Nick Thomas's avatar Nick Thomas 💃🏿

Rename Gitlab::Template::LicenseTemplate to CustomLicenseTemplate

parent bffcac9c
......@@ -29,7 +29,7 @@ module EE
end
def custom_licenses
::Gitlab::Template::LicenseTemplate.all(template_project)
::Gitlab::Template::CustomLicenseTemplate.all(template_project)
end
def template_project
......
module Gitlab
module Template
class LicenseTemplate < BaseTemplate
class CustomLicenseTemplate < BaseTemplate
class << self
def extension
'.txt'
......
......@@ -11,7 +11,7 @@ describe LicenseTemplateFinder do
before do
stub_ee_application_setting(file_template_project: project)
allow(Gitlab::Template::LicenseTemplate)
allow(Gitlab::Template::CustomLicenseTemplate)
.to receive(:all)
.with(project)
.and_return([OpenStruct.new(name: "custom template")])
......
......@@ -17,7 +17,7 @@ describe BlobHelper do
stub_licensed_features(custom_file_templates: true)
stub_ee_application_setting(file_template_project: project)
expect(Gitlab::Template::LicenseTemplate)
expect(Gitlab::Template::CustomLicenseTemplate)
.to receive(:all)
.with(project)
.and_return([OpenStruct.new(name: "name")])
......
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