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
595ee8e6
Commit
595ee8e6
authored
Jan 13, 2020
by
mo khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply maintainer feedback
parent
3443e5bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/spec/models/sca/license_compliance_spec.rb
ee/spec/models/sca/license_compliance_spec.rb
+3
-3
No files found.
ee/spec/models/sca/license_compliance_spec.rb
View file @
595ee8e6
...
@@ -162,15 +162,15 @@ RSpec.describe SCA::LicenseCompliance do
...
@@ -162,15 +162,15 @@ RSpec.describe SCA::LicenseCompliance do
context
"when searching for policies for licenses that were detected in a scan report"
do
context
"when searching for policies for licenses that were detected in a scan report"
do
let
(
:results
)
{
subject
.
find_policies
(
detected_only:
true
)
}
let
(
:results
)
{
subject
.
find_policies
(
detected_only:
true
)
}
it
'
excludes policies for licenses that do no
t appear in the latest license scan report'
do
it
'
only includes licenses tha
t appear in the latest license scan report'
do
expect
(
results
.
map
(
&
:name
)).
not_to
include
(
'SOFTWARE_LICENSE-2.7/example_1'
)
expect
(
results
.
count
).
to
be
(
3
)
end
end
it
'includes a policy for an unclassified and known license that was detected in the scan report'
do
it
'includes a policy for an unclassified and known license that was detected in the scan report'
do
assert_matches
(
assert_matches
(
results
[
0
],
results
[
0
],
id:
nil
,
id:
nil
,
name:
"BSD 3-Clause
\"
New
\"
or
\"
Revised
\"
License"
,
name:
'BSD 3-Clause "New" or "Revised" License'
,
url:
"http://spdx.org/licenses/BSD-3-Clause.json"
,
url:
"http://spdx.org/licenses/BSD-3-Clause.json"
,
classification:
"unclassified"
,
classification:
"unclassified"
,
spdx_identifier:
"BSD-3-Clause"
spdx_identifier:
"BSD-3-Clause"
...
...
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