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
c3ff1702
Commit
c3ff1702
authored
Nov 05, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failure
parent
e8f37eef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/spec/models/ci/build_spec.rb
ee/spec/models/ci/build_spec.rb
+2
-2
ee/spec/models/ci/pipeline_spec.rb
ee/spec/models/ci/pipeline_spec.rb
+1
-1
No files found.
ee/spec/models/ci/build_spec.rb
View file @
c3ff1702
...
...
@@ -119,7 +119,7 @@ describe Ci::Build do
subject
{
described_class
.
with_security_reports
}
context
'when build has a security report'
do
let!
(
:build
)
{
create
(
:ee_ci_build
,
:success
,
:s
ecurity_reports
)
}
let!
(
:build
)
{
create
(
:ee_ci_build
,
:success
,
:s
ast
)
}
it
'selects the build'
do
is_expected
.
to
eq
([
build
])
...
...
@@ -135,7 +135,7 @@ describe Ci::Build do
end
context
'when there are multiple builds with security reports'
do
let!
(
:builds
)
{
create_list
(
:ee_ci_build
,
5
,
:success
,
:s
ecurity_reports
)
}
let!
(
:builds
)
{
create_list
(
:ee_ci_build
,
5
,
:success
,
:s
ast
)
}
it
'does not execute a query for selecting job artifacts one by one'
do
recorded
=
ActiveRecord
::
QueryRecorder
.
new
do
...
...
ee/spec/models/ci/pipeline_spec.rb
View file @
c3ff1702
...
...
@@ -195,7 +195,7 @@ describe Ci::Pipeline do
context
'when retried build has security reports'
do
before
do
create
(
:ee_ci_build
,
:retried
,
:s
ecurity_reports
,
pipeline:
pipeline
,
project:
project
)
create
(
:ee_ci_build
,
:retried
,
:s
ast
,
pipeline:
pipeline
,
project:
project
)
end
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
:success
,
project:
project
)
}
...
...
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