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
3c79f7c2
Commit
3c79f7c2
authored
Dec 21, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Access `resolved_on_default_branch` via attribute reader
parent
0e949d15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/services/security/store_report_service_spec.rb
ee/spec/services/security/store_report_service_spec.rb
+2
-2
No files found.
ee/spec/services/security/store_report_service_spec.rb
View file @
3c79f7c2
...
...
@@ -152,7 +152,7 @@ RSpec.describe Security::StoreReportService, '#execute' do
let!
(
:existing_vulnerability
)
{
create
(
:vulnerability
,
report_type:
report_type
,
project:
project
)
}
it
'marks the vulnerability as resolved on default branch'
do
expect
{
subject
}.
to
change
{
existing_vulnerability
.
reload
[
:resolved_on_default_branch
]
}.
from
(
false
).
to
(
true
)
expect
{
subject
}.
to
change
{
existing_vulnerability
.
reload
.
resolved_on_default_branch
}.
from
(
false
).
to
(
true
)
end
end
...
...
@@ -162,7 +162,7 @@ RSpec.describe Security::StoreReportService, '#execute' do
end
it
'marks the vulnerability as not resolved on default branch'
do
expect
{
subject
}.
to
change
{
vulnerability
.
reload
[
:resolved_on_default_branch
]
}.
from
(
true
).
to
(
false
)
expect
{
subject
}.
to
change
{
vulnerability
.
reload
.
resolved_on_default_branch
}.
from
(
true
).
to
(
false
)
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