Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-04-26 06:30:08 +0300
committerStan Hu <stanhu@gmail.com>2019-04-30 08:55:13 +0300
commit416f3971e66762246f0af3cda97c4b55e101f61b (patch)
tree18367edb51b3a43a4f3b2d740e65df0d06436a6d /spec
parent0a4817dd77eb371f171b634e4df180eafa115721 (diff)
Minor refactoring in check_uninstall_progress_service_spec
Diffstat (limited to 'spec')
-rw-r--r--spec/services/clusters/applications/check_uninstall_progress_service_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb b/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
index fedca51a1b4..8ff92eb2d09 100644
--- a/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
+++ b/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb
@@ -11,6 +11,11 @@ describe Clusters::Applications::CheckUninstallProgressService do
let(:errors) { nil }
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|
let(:phase) { a_phase }
@@ -36,11 +41,6 @@ describe Clusters::Applications::CheckUninstallProgressService do
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
RESCHEDULE_PHASES.each { |phase| it_behaves_like 'a not yet terminated installation', phase }