diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
commit | 7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch) | |
tree | 5bdc2229f5198d516781f8d24eace62fc7e589e9 /spec/workers/clusters/applications/wait_for_uninstall_app_worker_spec.rb | |
parent | 185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff) |
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'spec/workers/clusters/applications/wait_for_uninstall_app_worker_spec.rb')
-rw-r--r-- | spec/workers/clusters/applications/wait_for_uninstall_app_worker_spec.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/workers/clusters/applications/wait_for_uninstall_app_worker_spec.rb b/spec/workers/clusters/applications/wait_for_uninstall_app_worker_spec.rb deleted file mode 100644 index d1dd1cd738b..00000000000 --- a/spec/workers/clusters/applications/wait_for_uninstall_app_worker_spec.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe Clusters::Applications::WaitForUninstallAppWorker, '#perform' do - let(:app) { create(:clusters_applications_helm) } - let(:app_name) { app.name } - let(:app_id) { app.id } - - subject { described_class.new.perform(app_name, app_id) } - - context 'when app exists' do - let(:service) { instance_double(Clusters::Applications::CheckUninstallProgressService) } - - it 'calls the check service' do - expect(Clusters::Applications::CheckUninstallProgressService).to receive(:new).with(app).and_return(service) - expect(service).to receive(:execute).once - - subject - end - end - - context 'when app does not exist' do - let(:app_id) { 0 } - - it 'does not call the check service' do - expect(Clusters::Applications::CheckUninstallProgressService).not_to receive(:new) - - expect { subject }.to raise_error(ActiveRecord::RecordNotFound) - end - end -end |