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
72031abe
Commit
72031abe
authored
Mar 27, 2020
by
celdem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor compare license scanning reports service test
parent
66d1c270
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ee/spec/services/ci/compare_license_scanning_reports_service_spec.rb
...vices/ci/compare_license_scanning_reports_service_spec.rb
+4
-5
No files found.
ee/spec/services/ci/compare_license_scanning_reports_service_spec.rb
View file @
72031abe
...
...
@@ -3,9 +3,8 @@
require
'spec_helper'
describe
Ci
::
CompareLicenseScanningReportsService
do
let
(
:current_user
)
{
project
.
users
.
take
}
let
(
:service
)
{
described_class
.
new
(
project
,
current_user
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:service
)
{
described_class
.
new
(
project
,
nil
)
}
let
(
:project
)
{
build
(
:project
,
:repository
)
}
before
do
stub_licensed_features
(
license_scanning:
true
)
...
...
@@ -50,8 +49,8 @@ describe Ci::CompareLicenseScanningReportsService do
end
context
'when head pipeline has corrupted license scanning reports'
do
let!
(
:base_pipeline
)
{
create
(
:ee_ci_pipeline
,
:with_corrupted_license_management_report
,
project:
project
)
}
let!
(
:head_pipeline
)
{
create
(
:ee_ci_pipeline
,
:with_corrupted_license_management_report
,
project:
project
)
}
let!
(
:base_pipeline
)
{
build
(
:ee_ci_pipeline
,
:with_corrupted_license_management_report
,
project:
project
)
}
let!
(
:head_pipeline
)
{
build
(
:ee_ci_pipeline
,
:with_corrupted_license_management_report
,
project:
project
)
}
it
'returns status and error message'
do
expect
(
subject
[
:status
]).
to
eq
(
:error
)
...
...
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