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:
authorRémy Coutable <remy@rymai.me>2019-04-01 20:41:36 +0300
committerRémy Coutable <remy@rymai.me>2019-04-02 11:21:34 +0300
commit590129a89238c3683aa8ffa41b72624fd786cbf6 (patch)
tree2715c0353742953424cd701454d52e644f74c0ee /spec/models/environment_spec.rb
parent7c26c47cb55613babcbbbd329ffec1ab4b79378f (diff)
[CE] Reduce diff with EE in spec/models/environment_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/models/environment_spec.rb')
-rw-r--r--spec/models/environment_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb
index 448ed35cb1e..ca5eed60b56 100644
--- a/spec/models/environment_spec.rb
+++ b/spec/models/environment_spec.rb
@@ -592,7 +592,9 @@ describe Environment do
shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do
it 'returns the terminals from the deployment service' do
- expect(project.deployment_platform)
+ deployment_platform_target = Gitlab.ee? ? environment : project
+
+ expect(deployment_platform_target.deployment_platform)
.to receive(:terminals).with(environment)
.and_return(:fake_terminals)