Commit 34d02f09 authored by Jose Vargas's avatar Jose Vargas

Refactor template tests

parent 1a4c89bf
......@@ -20,14 +20,14 @@ RSpec.describe "Custom file template classes" do
'LICENSE/bar.txt' => 'CustomLicenseTemplate Bar',
'LICENSE/bad.xyz' => 'CustomLicenseTemplate Bad',
'metrics-dashboards/foo.yml' => 'CustomMetricsDashboardYmlTemplate Foo',
'metrics-dashboards/bar.yml' => 'CustomMetricsDashboardYmlTemplate Bar',
'metrics-dashboards/bad.xyz' => 'CustomMetricsDashboardYmlTemplate Bad',
'Dockerfile/category/baz.txt' => 'CustomDockerfileTemplate category baz',
'gitignore/category/baz.txt' => 'CustomGitignoreTemplate category baz',
'gitlab-ci/category/baz.yml' => 'CustomGitlabCiYmlTemplate category baz',
'LICENSE/category/baz.txt' => 'CustomLicenseTemplate category baz',
'metrics-dashboards/foo.yml' => 'CustomMetricsDashboardYmlTemplate Foo',
'metrics-dashboards/bar.yml' => 'CustomMetricsDashboardYmlTemplate Bar',
'metrics-dashboards/bad.xyz' => 'CustomMetricsDashboardYmlTemplate Bad'
'LICENSE/category/baz.txt' => 'CustomLicenseTemplate category baz'
}
let(:project) { create(:project, :custom_repo, files: files) }
......
......@@ -12,8 +12,8 @@ RSpec.describe TemplateFinder do
:dockerfiles | described_class
:gitignores | described_class
:gitlab_ci_ymls | described_class
:metrics_dashboard_ymls | described_class
:licenses | ::LicenseTemplateFinder
:metrics_dashboard_ymls | described_class
end
with_them do
......
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