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:
authorShinya Maeda <shinya@gitlab.com>2017-11-27 17:19:16 +0300
committerShinya Maeda <shinya@gitlab.com>2017-11-28 14:47:59 +0300
commitc36d7842da24e6726705199f178c1324c634bdaf (patch)
treee84682ce1ef81470cf08782e9983c4f428db8545 /spec/models/environment_spec.rb
parent53da3d976f3705a87edc50dca41748b5e479fc83 (diff)
Aling shared_exmaples to "same behavior between KubernetesService and Platform::Kubernetes"
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r--spec/models/environment_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb
index dc71cf16f54..6f24a039998 100644
--- a/spec/models/environment_spec.rb
+++ b/spec/models/environment_spec.rb
@@ -327,7 +327,7 @@ describe Environment do
context 'when the enviroment is available' do
context 'with a deployment service' do
- shared_examples 'correct behavior for has_terminals?' do
+ shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do
context 'and a deployment' do
let!(:deployment) { create(:deployment, environment: environment) }
it { is_expected.to be_truthy }
@@ -341,14 +341,14 @@ describe Environment do
context 'when user configured kubernetes from Integration > Kubernetes' do
let(:project) { create(:kubernetes_project) }
- it_behaves_like 'correct behavior for has_terminals?'
+ 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 for has_terminals?'
+ it_behaves_like 'same behavior between KubernetesService and Platform::Kubernetes'
end
end
@@ -376,7 +376,7 @@ describe Environment do
allow(environment).to receive(:has_terminals?).and_return(true)
end
- shared_examples 'correct behavior on KubernetesService and Platform::Kubernetes' do
+ shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do
it 'returns the terminals from the deployment service' do
expect(project.deployment_platform)
.to receive(:terminals).with(environment)
@@ -389,14 +389,14 @@ describe Environment do
context 'when user configured kubernetes from Integration > Kubernetes' do
let(:project) { create(:kubernetes_project) }
- it_behaves_like 'correct behavior on KubernetesService and Platform::Kubernetes'
+ 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 on KubernetesService and Platform::Kubernetes'
+ it_behaves_like 'same behavior between KubernetesService and Platform::Kubernetes'
end
end