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
6ecfb5db
Commit
6ecfb5db
authored
Feb 11, 2022
by
Michał Zając
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve specs
parent
7333a86f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/lib/gitlab/ci/parsers/security/validators/schema_validator_spec.rb
...b/ci/parsers/security/validators/schema_validator_spec.rb
+3
-3
No files found.
spec/lib/gitlab/ci/parsers/security/validators/schema_validator_spec.rb
View file @
6ecfb5db
...
...
@@ -8,12 +8,12 @@ RSpec.describe Gitlab::Ci::Parsers::Security::Validators::SchemaValidator do
described_class
::
SUPPORTED_VERSIONS
.
each_key
do
|
report_type
|
context
"
#{
report_type
}
"
do
let
(
:filename
)
{
"
#{
report_type
.
to_s
.
tr
(
"_"
,
"-"
)
}
-report-format.json"
}
described_class
::
SUPPORTED_VERSIONS
[
report_type
].
each
do
|
version
|
context
"
#{
version
}
"
do
it
"has a corresponding schema file present"
do
type_name
=
report_type
.
to_s
.
tr
(
"_"
,
"-"
)
file_name
=
"
#{
type_name
}
-report-format.json"
full_path
=
schema_path
.
join
(
version
,
file_name
)
full_path
=
schema_path
.
join
(
version
,
filename
)
expect
(
File
.
file?
(
full_path
)).
to
be
true
end
end
...
...
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