summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-11-27 23:19:16 +0900
committerShinya Maeda <shinya@gitlab.com>2017-11-28 20:47:59 +0900
commitc36d7842da24e6726705199f178c1324c634bdaf (patch)
treee84682ce1ef81470cf08782e9983c4f428db8545 /spec/workers
parent53da3d976f3705a87edc50dca41748b5e479fc83 (diff)
downloadgitlab-ce-c36d7842da24e6726705199f178c1324c634bdaf.tar.gz
Aling shared_exmaples to "same behavior between KubernetesService and Platform::Kubernetes"
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/reactive_caching_worker_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/workers/reactive_caching_worker_spec.rb b/spec/workers/reactive_caching_worker_spec.rb
index dd654c941bc..225d3e38542 100644
--- a/spec/workers/reactive_caching_worker_spec.rb
+++ b/spec/workers/reactive_caching_worker_spec.rb
@@ -5,7 +5,7 @@ describe ReactiveCachingWorker do
subject { described_class.new.perform("KubernetesService", service.id) }
describe '#perform' do
- shared_examples 'correct behavior with perform' do
+ shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do
it 'calls #exclusively_update_reactive_cache!' do
expect_any_instance_of(KubernetesService).to receive(:exclusively_update_reactive_cache!)
@@ -16,14 +16,14 @@ describe ReactiveCachingWorker do
context 'when user configured kubernetes from Integration > Kubernetes' do
let(:project) { create(:kubernetes_project) }
- it_behaves_like 'correct behavior with perform'
+ it_behaves_like 'same behavior between KubernetesService and Platform::Kubernetes'
end
context 'when user configured kubernetes from CI/CD > Clusters' do
let!(:cluster) { create(:cluster, :project, :provided_by_gcp) }
let(:project) { cluster.project }
- it_behaves_like 'correct behavior with perform'
+ it_behaves_like 'same behavior between KubernetesService and Platform::Kubernetes'
end
end
end