Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
cbfef8b8
Verified
Commit
cbfef8b8
authored
1 year ago
by
Mehmet Emin INAC
Browse files
Options
Downloads
Patches
Plain Diff
Fix broken master
parent
dfe744df
No related branches found
No related tags found
1 merge request
!145948
Fix broken master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ee/spec/services/groups/compliance_report_csv_service_spec.rb
+6
-5
6 additions, 5 deletions
...pec/services/groups/compliance_report_csv_service_spec.rb
with
6 additions
and
5 deletions
ee/spec/services/groups/compliance_report_csv_service_spec.rb
+
6
−
5
View file @
cbfef8b8
...
...
@@ -2,10 +2,11 @@
require
'spec_helper'
RSpec
.
describe
Groups
::
ComplianceReportCsvService
,
feature_category: :compliance_management
do
RSpec
.
describe
Groups
::
ComplianceReportCsvService
,
:freeze_time
,
feature_category: :compliance_management
do
subject
(
:service
)
{
described_class
.
new
(
user
,
group
,
filters
)
}
let
(
:filters
)
{
{
from:
10
.
years
.
ago
,
to:
Time
.
current
}
}
let
(
:from
)
{
10
.
years
.
ago
}
let
(
:filters
)
{
{
from:
from
,
to:
Time
.
current
}
}
let_it_be
(
:user
)
{
create
(
:user
,
name:
'John Cena'
)
}
...
...
@@ -107,9 +108,9 @@
context
'when verifying the csv data'
do
let
(
:all_commits
)
do
commits
=
project1
.
repository
.
commits
(
nil
,
limit:
100
).
map
(
&
:sha
)
+
project2
.
repository
.
commits
(
nil
,
limit:
100
).
map
(
&
:sha
)
+
sub_group_project
.
repository
.
commits
(
nil
,
limit:
100
).
map
(
&
:sha
)
commits
=
project1
.
repository
.
commits
(
nil
,
limit:
100
,
after:
from
).
map
(
&
:sha
)
+
project2
.
repository
.
commits
(
nil
,
limit:
100
,
after:
from
).
map
(
&
:sha
)
+
sub_group_project
.
repository
.
commits
(
nil
,
limit:
100
,
after:
from
).
map
(
&
:sha
)
commits
.
sort
.
uniq
end
...
...
This diff is collapsed.
Click to expand it.
Mark Lapierre
@mlapierre
mentioned in commit
bf8a9ac4
·
9 months ago
mentioned in commit
bf8a9ac4
mentioned in commit bf8a9ac40acd5b1f7e4dc586023026d60a5ed00c
Toggle commit list
Nao Hashizume
@nao.hashizume
mentioned in commit
5a7673a2
·
9 months ago
mentioned in commit
5a7673a2
mentioned in commit 5a7673a24bd8e08fe523a540408a9ad9621b9c73
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment