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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
4edde47e
Commit
4edde47e
authored
Jun 07, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix retry build service specs related to the stage
parent
96a7236b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
spec/services/ci/retry_build_service_spec.rb
spec/services/ci/retry_build_service_spec.rb
+15
-3
No files found.
spec/services/ci/retry_build_service_spec.rb
View file @
4edde47e
...
@@ -25,12 +25,24 @@ describe Ci::RetryBuildService, :services do
...
@@ -25,12 +25,24 @@ describe Ci::RetryBuildService, :services do
user_id auto_canceled_by_id retried]
.
freeze
user_id auto_canceled_by_id retried]
.
freeze
shared_examples
'build duplication'
do
shared_examples
'build duplication'
do
let
(
:stage
)
do
# TODO, we still do not have factory for new stages, we will need to
# switch existing factory to persist stages, instead of using LegacyStage
#
Ci
::
Stage
.
create!
(
project:
project
,
pipeline:
pipeline
,
name:
'test'
)
end
let
(
:build
)
do
let
(
:build
)
do
create
(
:ci_build
,
:failed
,
:artifacts_expired
,
:erased
,
create
(
:ci_build
,
:failed
,
:artifacts_expired
,
:erased
,
:queued
,
:coverage
,
:tags
,
:allowed_to_fail
,
:on_tag
,
:queued
,
:coverage
,
:tags
,
:allowed_to_fail
,
:on_tag
,
:teardown_environment
,
:triggered
,
:trace
,
:triggered
,
:trace
,
:teardown_environment
,
description:
'some build'
,
pipeline:
pipeline
,
description:
'my-job'
,
stage:
'test'
,
pipeline:
pipeline
,
auto_canceled_by:
create
(
:ci_empty_pipeline
))
auto_canceled_by:
create
(
:ci_empty_pipeline
))
do
|
build
|
##
# TODO, workaround for FactoryGirl limitation when having both
# stage (text) and stage_id (integer) columns in the table.
build
.
stage_id
=
stage
.
id
end
end
end
describe
'clone accessors'
do
describe
'clone accessors'
do
...
...
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