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
aff1bf8d
Commit
aff1bf8d
authored
Dec 21, 2020
by
Saikat Sarkar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase test coverage for vulnerability_presenter
parent
a523866d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
ee/spec/presenters/vulnerability_presenter_spec.rb
ee/spec/presenters/vulnerability_presenter_spec.rb
+14
-0
No files found.
ee/spec/presenters/vulnerability_presenter_spec.rb
View file @
aff1bf8d
...
...
@@ -9,6 +9,20 @@ RSpec.describe VulnerabilityPresenter do
subject
{
described_class
.
new
(
finding
.
vulnerability
)
}
describe
'#scanner'
do
it
'returns the scanner for a finding'
do
expect
(
subject
.
scanner
).
to
eql
(
finding
.
scanner
)
end
end
describe
'#remediations'
do
let
(
:finding
)
{
create
(
:vulnerabilities_finding
,
:with_secret_detection
,
:with_remediation
,
pipelines:
[
pipeline
],
project:
project
)
}
it
'returns remediations'
do
expect
(
subject
.
remediations
.
count
).
to
be
(
1
)
end
end
describe
'#location_link_with_raw_path'
do
it
'returns the location link in raw format'
do
path
=
subject
.
location_link_with_raw_path
...
...
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