Commit 416f3971 authored by Dylan Griffith's avatar Dylan Griffith Committed by Stan Hu

Minor refactoring in check_uninstall_progress_service_spec

parent 0a4817dd
......@@ -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 }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment