summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorJames Fargher <proglottis@gmail.com>2019-02-07 16:00:32 +1300
committerJames Fargher <proglottis@gmail.com>2019-02-08 16:38:13 +1300
commit470a86670fed96899a342f0b53a047799921055d (patch)
tree93cb01790ee039bdce376c438881276e2db5a5a7 /spec/models
parent684a1a17674d92682c9d91c4e944e1a31b0bcda4 (diff)
downloadgitlab-ce-fix_deployment_service_predefined_variables.tar.gz
Add missing argument to DeploymentService#predefined_variablesfix_deployment_service_predefined_variables
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