diff options
author | Mike Greiling <mike@pixelcog.com> | 2019-03-31 22:33:46 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-04-04 16:30:29 -0500 |
commit | 8598fb3411521f813f8776f6f992983bf115668b (patch) | |
tree | 9596de3a5a6c879e97e7374582cc4fd1f1b215d0 /spec/views | |
parent | 4f2082caba98349d413124831bf3e19b1f83bf7a (diff) | |
download | gitlab-ce-8598fb3411521f813f8776f6f992983bf115668b.tar.gz |
Hide kubernetes cluster warning when a cluster exists
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/settings/ci_cd/_autodevops_form.html.haml_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/views/projects/settings/ci_cd/_autodevops_form.html.haml_spec.rb b/spec/views/projects/settings/ci_cd/_autodevops_form.html.haml_spec.rb index b52fc719a64..ff2d491539b 100644 --- a/spec/views/projects/settings/ci_cd/_autodevops_form.html.haml_spec.rb +++ b/spec/views/projects/settings/ci_cd/_autodevops_form.html.haml_spec.rb @@ -13,4 +13,14 @@ describe 'projects/settings/ci_cd/_autodevops_form' do expect(rendered).to have_text('You must add a Kubernetes cluster integration to this project with a domain in order for your deployment strategy to work correctly.') end + + context 'when the project has an available kubernetes cluster' do + let!(:cluster) { create(:cluster, cluster_type: :project_type, projects: [project]) } + + it 'does not show a warning message' do + render + + expect(rendered).not_to have_text('You must add a Kubernetes cluster') + end + end end |