summaryrefslogtreecommitdiff
path: root/spec/models/ci
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/models/ci
parent53da3d976f3705a87edc50dca41748b5e479fc83 (diff)
downloadgitlab-ce-c36d7842da24e6726705199f178c1324c634bdaf.tar.gz
Aling shared_exmaples to "same behavior between KubernetesService and Platform::Kubernetes"
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/pipeline_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index c53942ed61c..4cf0088ac9c 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -557,7 +557,7 @@ describe Ci::Pipeline, :mailer do
describe '#has_kubernetes_active?' do
context 'when kubernetes is active' do
- shared_examples 'correct behavior with has_kubernetes_active?' do
+ shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do
it 'returns true' do
expect(pipeline).to have_kubernetes_active
end
@@ -566,14 +566,14 @@ describe Ci::Pipeline, :mailer do
context 'when user configured kubernetes from Integration > Kubernetes' do
let(:project) { create(:kubernetes_project) }
- it_behaves_like 'correct behavior with has_kubernetes_active?'
+ 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 has_kubernetes_active?'
+ it_behaves_like 'same behavior between KubernetesService and Platform::Kubernetes'
end
end