summaryrefslogtreecommitdiff
path: root/spec/services/clusters
diff options
context:
space:
mode:
authorJoão Cunha <j.a.cunha@gmail.com>2019-03-05 15:21:29 +0000
committerJoão Cunha <j.a.cunha@gmail.com>2019-03-05 15:21:29 +0000
commit3bdff7aadfc68222086518a365496fb22357cb9c (patch)
tree9a87afeba6f47e279059c6c37dfa758c7768cd4d /spec/services/clusters
parent5e6e1dd54ae80f6725d75da01eb024d40aa47167 (diff)
downloadgitlab-ce-3bdff7aadfc68222086518a365496fb22357cb9c.tar.gz
Rename ClusterUpdateAppWorker to ClusterPatchAppWorker
- This is to avoid colision with EE ClusterUpdateAppWorker
Diffstat (limited to 'spec/services/clusters')
-rw-r--r--spec/services/clusters/applications/update_service_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/services/clusters/applications/update_service_spec.rb b/spec/services/clusters/applications/update_service_spec.rb
index 22ad698f77d..2d299882af0 100644
--- a/spec/services/clusters/applications/update_service_spec.rb
+++ b/spec/services/clusters/applications/update_service_spec.rb
@@ -14,12 +14,12 @@ describe Clusters::Applications::UpdateService do
describe '#execute' do
before do
- allow(ClusterUpdateAppWorker).to receive(:perform_async)
+ allow(ClusterPatchAppWorker).to receive(:perform_async)
end
context 'application is not installed' do
it 'raises Clusters::Applications::BaseService::InvalidApplicationError' do
- expect(ClusterUpdateAppWorker).not_to receive(:perform_async)
+ expect(ClusterPatchAppWorker).not_to receive(:perform_async)
expect { subject }
.to raise_exception { Clusters::Applications::BaseService::InvalidApplicationError }
@@ -46,8 +46,8 @@ describe Clusters::Applications::UpdateService do
expect(application.reload).to be_scheduled
end
- it 'schedules ClusterUpdateAppWorker' do
- expect(ClusterUpdateAppWorker).to receive(:perform_async)
+ it 'schedules ClusterPatchAppWorker' do
+ expect(ClusterPatchAppWorker).to receive(:perform_async)
subject
end
@@ -59,7 +59,7 @@ describe Clusters::Applications::UpdateService do
end
it 'raises StateMachines::InvalidTransition' do
- expect(ClusterUpdateAppWorker).not_to receive(:perform_async)
+ expect(ClusterPatchAppWorker).not_to receive(:perform_async)
expect { subject }
.to raise_exception { StateMachines::InvalidTransition }