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
Léo-Paul Géneau
gitlab-ce
Commits
416f3971
Commit
416f3971
authored
Apr 26, 2019
by
Dylan Griffith
Committed by
Stan Hu
Apr 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor refactoring in check_uninstall_progress_service_spec
parent
0a4817dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
...ers/applications/check_uninstall_progress_service_spec.rb
+5
-5
No files found.
spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
View file @
416f3971
...
@@ -11,6 +11,11 @@ describe Clusters::Applications::CheckUninstallProgressService do
...
@@ -11,6 +11,11 @@ describe Clusters::Applications::CheckUninstallProgressService do
let
(
:errors
)
{
nil
}
let
(
:errors
)
{
nil
}
let
(
:worker_class
)
{
Clusters
::
Applications
::
WaitForUninstallAppWorker
}
let
(
:worker_class
)
{
Clusters
::
Applications
::
WaitForUninstallAppWorker
}
before
do
allow
(
service
).
to
receive
(
:installation_errors
).
and_return
(
errors
)
allow
(
service
).
to
receive
(
:remove_installation_pod
)
end
shared_examples
'a not yet terminated installation'
do
|
a_phase
|
shared_examples
'a not yet terminated installation'
do
|
a_phase
|
let
(
:phase
)
{
a_phase
}
let
(
:phase
)
{
a_phase
}
...
@@ -36,11 +41,6 @@ describe Clusters::Applications::CheckUninstallProgressService do
...
@@ -36,11 +41,6 @@ describe Clusters::Applications::CheckUninstallProgressService do
end
end
end
end
before
do
allow
(
service
).
to
receive
(
:installation_errors
).
and_return
(
errors
)
allow
(
service
).
to
receive
(
:remove_installation_pod
).
and_return
(
nil
)
end
context
'when application is installing'
do
context
'when application is installing'
do
RESCHEDULE_PHASES
.
each
{
|
phase
|
it_behaves_like
'a not yet terminated installation'
,
phase
}
RESCHEDULE_PHASES
.
each
{
|
phase
|
it_behaves_like
'a not yet terminated installation'
,
phase
}
...
...
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