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
Boxiang Sun
gitlab-ce
Commits
c3a62181
Commit
c3a62181
authored
Apr 21, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve helpers in pipeline model specs
parent
3fdba5c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/models/ci/pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+3
-3
No files found.
spec/models/ci/pipeline_spec.rb
View file @
c3a62181
...
...
@@ -328,7 +328,7 @@ describe Ci::Pipeline, models: true do
context
'when pipeline becomes blocked'
do
let!
(
:build
)
{
create_build
(
'build:1'
)
}
let!
(
:action
)
{
create
(
:ci_build
,
:manual
,
pipeline:
pipeline
)
}
let!
(
:action
)
{
create
_build
(
'manual:action'
,
:manual
)
}
before
do
travel_to
(
current
+
1
.
minute
)
do
...
...
@@ -407,8 +407,8 @@ describe Ci::Pipeline, models: true do
end
end
def
create_build
(
name
,
queued_at:
current
,
started_from:
0
,
**
opts
)
create
(
:ci_build
,
def
create_build
(
name
,
*
traits
,
queued_at:
current
,
started_from:
0
,
**
opts
)
create
(
:ci_build
,
*
traits
,
name:
name
,
pipeline:
pipeline
,
queued_at:
queued_at
,
...
...
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