From 416f3971e66762246f0af3cda97c4b55e101f61b Mon Sep 17 00:00:00 2001 From: Dylan Griffith Date: Fri, 26 Apr 2019 13:30:08 +1000 Subject: Minor refactoring in check_uninstall_progress_service_spec --- .../applications/check_uninstall_progress_service_spec.rb | 10 +++++----- 1 file 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 } -- cgit v1.2.1