summaryrefslogtreecommitdiff
path: root/spec/controllers/groups
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/controllers/groups
parent5e6e1dd54ae80f6725d75da01eb024d40aa47167 (diff)
downloadgitlab-ce-3bdff7aadfc68222086518a365496fb22357cb9c.tar.gz
Rename ClusterUpdateAppWorker to ClusterPatchAppWorker
- This is to avoid colision with EE ClusterUpdateAppWorker
Diffstat (limited to 'spec/controllers/groups')
-rw-r--r--spec/controllers/groups/clusters/applications_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/groups/clusters/applications_controller_spec.rb b/spec/controllers/groups/clusters/applications_controller_spec.rb
index 84da43fe2ef..16a63536ea6 100644
--- a/spec/controllers/groups/clusters/applications_controller_spec.rb
+++ b/spec/controllers/groups/clusters/applications_controller_spec.rb
@@ -105,7 +105,7 @@ describe Groups::Clusters::ApplicationsController do
context "when cluster and app exists" do
it "schedules an application update" do
- expect(ClusterUpdateAppWorker).to receive(:perform_async).with(application.name, anything).once
+ expect(ClusterPatchAppWorker).to receive(:perform_async).with(application.name, anything).once
is_expected.to have_http_status(:no_content)
@@ -138,7 +138,7 @@ describe Groups::Clusters::ApplicationsController do
describe 'security' do
before do
- allow(ClusterUpdateAppWorker).to receive(:perform_async)
+ allow(ClusterPatchAppWorker).to receive(:perform_async)
end
it_behaves_like 'a secure endpoint'