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
9dcff920
Commit
9dcff920
authored
Feb 03, 2020
by
Tetiana Chupryna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve spec by testing against object
parent
dae0a390
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ee/spec/models/ci/pipeline_spec.rb
ee/spec/models/ci/pipeline_spec.rb
+4
-4
No files found.
ee/spec/models/ci/pipeline_spec.rb
View file @
9dcff920
...
...
@@ -122,7 +122,7 @@ describe Ci::Pipeline do
describe
'#batch_lookup_report_artifact_for_file_type'
do
subject
(
:artifact
)
{
pipeline
.
batch_lookup_report_artifact_for_file_type
(
file_type
)
}
let
!
(
:build
)
{
create
(
:ee_ci_build
,
artifact_type
,
:success
,
pipeline:
pipeline
)
}
let
(
:build_artifact
)
{
build
.
job_artifacts
.
sample
}
context
'with security report artifact'
do
let!
(
:build
)
{
create
(
:ee_ci_build
,
:dependency_scanning
,
:success
,
pipeline:
pipeline
)
}
...
...
@@ -133,7 +133,7 @@ describe Ci::Pipeline do
end
it
'returns right kind of artifacts'
do
expect
(
artifact
.
file_type
).
to
eq
file_type
.
to_s
is_expected
.
to
eq
(
build_artifact
)
end
context
'when looking for other type of artifact'
do
...
...
@@ -157,7 +157,7 @@ describe Ci::Pipeline do
let
(
:file_type
)
{
:license_scanning
}
it
'returns artifact'
do
is_expected
.
to
be_kind_of
Ci
::
JobArtifact
is_expected
.
to
eq
(
build_artifact
)
end
end
...
...
@@ -165,7 +165,7 @@ describe Ci::Pipeline do
let
(
:file_type
)
{
:license_management
}
it
'returns artifact'
do
is_expected
.
to
be_kind_of
Ci
::
JobArtifact
is_expected
.
to
eq
(
build_artifact
)
end
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