BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
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