Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Cunha <j.a.cunha@gmail.com>2019-03-05 18:21:29 +0300
committerJoão Cunha <j.a.cunha@gmail.com>2019-03-05 18:21:29 +0300
commit3bdff7aadfc68222086518a365496fb22357cb9c (patch)
tree9a87afeba6f47e279059c6c37dfa758c7768cd4d /spec/controllers
parent5e6e1dd54ae80f6725d75da01eb024d40aa47167 (diff)
Rename ClusterUpdateAppWorker to ClusterPatchAppWorker
- This is to avoid colision with EE ClusterUpdateAppWorker
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/groups/clusters/applications_controller_spec.rb4
-rw-r--r--spec/controllers/projects/clusters/applications_controller_spec.rb4
2 files changed, 4 insertions, 4 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'
diff --git a/spec/controllers/projects/clusters/applications_controller_spec.rb b/spec/controllers/projects/clusters/applications_controller_spec.rb
index 247adf3f8c7..cd1a01f8acc 100644
--- a/spec/controllers/projects/clusters/applications_controller_spec.rb
+++ b/spec/controllers/projects/clusters/applications_controller_spec.rb
@@ -106,7 +106,7 @@ describe Projects::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)
@@ -139,7 +139,7 @@ describe Projects::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'