Commit 590129a8 authored by Rémy Coutable's avatar Rémy Coutable

[CE] Reduce diff with EE in spec/models/environment_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 7c26c47c
...@@ -592,7 +592,9 @@ describe Environment do ...@@ -592,7 +592,9 @@ describe Environment do
shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do
it 'returns the terminals from the deployment service' 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) .to receive(:terminals).with(environment)
.and_return(:fake_terminals) .and_return(:fake_terminals)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment