summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-04-26 13:30:08 +1000
committerStan Hu <stanhu@gmail.com>2019-04-29 22:55:13 -0700
commit416f3971e66762246f0af3cda97c4b55e101f61b (patch)
tree18367edb51b3a43a4f3b2d740e65df0d06436a6d
parent0a4817dd77eb371f171b634e4df180eafa115721 (diff)
downloadgitlab-ce-416f3971e66762246f0af3cda97c4b55e101f61b.tar.gz
Minor refactoring in check_uninstall_progress_service_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 }