Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
34d02f09
Commit
34d02f09
authored
Jul 31, 2020
by
Jose Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor template tests
parent
1a4c89bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ee/spec/lib/gitlab/template/custom_templates_spec.rb
ee/spec/lib/gitlab/template/custom_templates_spec.rb
+5
-5
spec/finders/template_finder_spec.rb
spec/finders/template_finder_spec.rb
+1
-1
No files found.
ee/spec/lib/gitlab/template/custom_templates_spec.rb
View file @
34d02f09
...
...
@@ -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
)
}
...
...
spec/finders/template_finder_spec.rb
View file @
34d02f09
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment