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
cec2cc3f
Commit
cec2cc3f
authored
Jul 31, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add specs for stage update worker
parent
8f1274ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
spec/workers/stage_update_worker_spec.rb
spec/workers/stage_update_worker_spec.rb
+22
-0
No files found.
spec/workers/stage_update_worker_spec.rb
0 → 100644
View file @
cec2cc3f
require
'spec_helper'
describe
StageUpdateWorker
do
describe
'#perform'
do
context
'when stage exists'
do
let
(
:stage
)
{
create
(
:ci_stage_entity
)
}
it
'updates stage status'
do
expect_any_instance_of
(
Ci
::
Stage
).
to
receive
(
:update_status
)
described_class
.
new
.
perform
(
stage
.
id
)
end
end
context
'when stage does not exist'
do
it
'does not raise exception'
do
expect
{
described_class
.
new
.
perform
(
123
)
}
.
not_to
raise_error
end
end
end
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