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
2956f0a6
Commit
2956f0a6
authored
Mar 06, 2017
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec for Ci::RegisterJobService
parent
440ef780
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/services/ci/register_job_service_spec.rb
spec/services/ci/register_job_service_spec.rb
+3
-3
No files found.
spec/services/ci/register_job_service_spec.rb
View file @
2956f0a6
...
...
@@ -181,7 +181,7 @@ module Ci
let!
(
:other_build
)
{
create
:ci_build
,
pipeline:
pipeline
}
before
do
allow_any_instance_of
(
Ci
::
Register
Build
Service
).
to
receive
(
:builds_for_specific_runner
)
allow_any_instance_of
(
Ci
::
Register
Job
Service
).
to
receive
(
:builds_for_specific_runner
)
.
and_return
([
pending_build
,
other_build
])
end
...
...
@@ -193,7 +193,7 @@ module Ci
context
'when single build is in queue'
do
before
do
allow_any_instance_of
(
Ci
::
Register
Build
Service
).
to
receive
(
:builds_for_specific_runner
)
allow_any_instance_of
(
Ci
::
Register
Job
Service
).
to
receive
(
:builds_for_specific_runner
)
.
and_return
([
pending_build
])
end
...
...
@@ -204,7 +204,7 @@ module Ci
context
'when there is no build in queue'
do
before
do
allow_any_instance_of
(
Ci
::
Register
Build
Service
).
to
receive
(
:builds_for_specific_runner
)
allow_any_instance_of
(
Ci
::
Register
Job
Service
).
to
receive
(
:builds_for_specific_runner
)
.
and_return
([])
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