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
2d0cd526
Commit
2d0cd526
authored
Aug 01, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec failures
parent
6893a3a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/services/ci/register_job_service_spec.rb
spec/services/ci/register_job_service_spec.rb
+2
-2
No files found.
spec/services/ci/register_job_service_spec.rb
View file @
2d0cd526
...
@@ -352,7 +352,7 @@ module Ci
...
@@ -352,7 +352,7 @@ module Ci
end
end
context
'runner feature set is verified'
do
context
'runner feature set is verified'
do
set
(
:pending_job
)
{
create
(
:ci_build
,
:pending
,
pipeline:
pipeline
)
}
let!
(
:pending_job
)
{
create
(
:ci_build
,
:pending
,
pipeline:
pipeline
)
}
before
do
before
do
expect_any_instance_of
(
Ci
::
Build
).
to
receive
(
:runner_required_feature_names
)
do
expect_any_instance_of
(
Ci
::
Build
).
to
receive
(
:runner_required_feature_names
)
do
...
@@ -364,7 +364,7 @@ module Ci
...
@@ -364,7 +364,7 @@ module Ci
context
'when feature is missing by runner'
do
context
'when feature is missing by runner'
do
let
(
:params
)
{
{}
}
let
(
:params
)
{
{}
}
it
'does not pick the build and drops the build'
do
it
'does not pick the build and drops the build'
do
expect
(
subject
).
to
be_nil
expect
(
subject
).
to
be_nil
expect
(
pending_job
.
reload
).
to
be_failed
expect
(
pending_job
.
reload
).
to
be_failed
...
...
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