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:
authorNick Thomas <nick@gitlab.com>2019-02-11 15:03:22 +0300
committerNick Thomas <nick@gitlab.com>2019-02-11 15:03:22 +0300
commitef875bd7aa24fd2c68027b8d6c837f33642a606e (patch)
treec84c08a24353ec42d1c7c2b44a08a00721edac47 /spec/models
parent1569389fa2906ffc611c9af955495c794429d45a (diff)
parent470a86670fed96899a342f0b53a047799921055d (diff)
Merge branch 'fix_deployment_service_predefined_variables' into 'master'
Add missing argument to DeploymentService#predefined_variables See merge request gitlab-org/gitlab-ce!24989
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/project_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index c1767ed0535..ac9362339e5 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -2548,6 +2548,14 @@ describe Project do
end
end
+ context 'when project uses mock deployment service' do
+ let(:project) { create(:mock_deployment_project) }
+
+ it 'returns an empty array' do
+ expect(project.deployment_variables).to eq []
+ end
+ end
+
context 'when project has a deployment service' do
shared_examples 'same behavior between KubernetesService and Platform::Kubernetes' do
it 'returns variables from this service' do