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
57757944
Commit
57757944
authored
May 28, 2021
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use let_it_be_with_reload to speed up specs
parent
14ba5c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
ee/spec/services/vulnerabilities/statistics/adjustment_service_spec.rb
...ces/vulnerabilities/statistics/adjustment_service_spec.rb
+1
-2
No files found.
ee/spec/services/vulnerabilities/statistics/adjustment_service_spec.rb
View file @
57757944
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
RSpec
.
describe
Vulnerabilities
::
Statistics
::
AdjustmentService
do
let_it_be
(
:project
)
{
create
(
:project
)
}
let_it_be
_with_reload
(
:project
)
{
create
(
:project
)
}
describe
'.execute'
do
let
(
:project_ids
)
{
[
1
,
2
,
3
]
}
...
...
@@ -23,7 +23,6 @@ RSpec.describe Vulnerabilities::Statistics::AdjustmentService do
end
describe
'#execute'
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:statistics
)
{
project
.
vulnerability_statistic
.
reload
.
as_json
(
only:
expected_statistics
.
keys
)
}
let
(
:project_ids
)
{
[
project
.
id
]
}
...
...
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