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
91922bea
Commit
91922bea
authored
Dec 02, 2021
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/OpenStructUse offenses
Changelog: other
parent
e865eea7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
.rubocop_todo/style/open_struct_use.yml
.rubocop_todo/style/open_struct_use.yml
+0
-1
spec/finders/template_finder_spec.rb
spec/finders/template_finder_spec.rb
+6
-1
No files found.
.rubocop_todo/style/open_struct_use.yml
View file @
91922bea
...
...
@@ -17,7 +17,6 @@ Style/OpenStructUse:
-
spec/factories/go_module_versions.rb
-
spec/factories/wiki_pages.rb
-
spec/features/projects/clusters_spec.rb
-
spec/finders/template_finder_spec.rb
-
spec/graphql/mutations/branches/create_spec.rb
-
spec/graphql/mutations/clusters/agent_tokens/create_spec.rb
-
spec/graphql/mutations/clusters/agents/create_spec.rb
...
...
spec/finders/template_finder_spec.rb
View file @
91922bea
...
...
@@ -153,7 +153,12 @@ RSpec.describe TemplateFinder do
let
(
:params
)
{
{}
}
subject
(
:result
)
{
described_class
.
new
(
type
,
project
,
params
).
template_names
.
values
.
flatten
.
map
{
|
el
|
OpenStruct
.
new
(
el
)
}
}
let
(
:template_name_struct
)
{
Struct
.
new
(
:name
,
:id
,
:key
,
:project_id
,
keyword_init:
true
)
}
subject
(
:result
)
do
described_class
.
new
(
type
,
project
,
params
).
template_names
.
values
.
flatten
.
map
{
|
el
|
template_name_struct
.
new
(
el
)
}
end
where
(
:type
,
:vendored_name
)
do
:dockerfiles
|
'Binary'
...
...
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