diff options
author | Nick Thomas <nick@gitlab.com> | 2019-02-11 15:03:22 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-02-11 15:03:22 +0300 |
commit | ef875bd7aa24fd2c68027b8d6c837f33642a606e (patch) | |
tree | c84c08a24353ec42d1c7c2b44a08a00721edac47 /spec/models | |
parent | 1569389fa2906ffc611c9af955495c794429d45a (diff) | |
parent | 470a86670fed96899a342f0b53a047799921055d (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.rb | 8 |
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 |