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

Rename Gitlab::Template::LicenseTemplate to CustomLicenseTemplate

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