diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-26 15:06:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-26 15:06:03 +0300 |
commit | e8baeb7fcba39c9af1b8a02163c12ce28173ae7b (patch) | |
tree | 08dc7a7009be6af10cb3ba2e48ede85ebec523b0 /spec/features/projects/show | |
parent | 71c6369c63c3b0576c79f2c9b4ba977aded8de7a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/projects/show')
-rw-r--r-- | spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb b/spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb index baf715000a3..df63856492e 100644 --- a/spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb +++ b/spec/features/projects/show/user_interacts_with_auto_devops_banner_spec.rb @@ -57,5 +57,18 @@ describe 'Project > Show > User interacts with auto devops implicitly enabled ba expect(page).not_to have_css('.auto-devops-implicitly-enabled-banner') end end + + context 'when AutoDevOps enabled but container registry is disabled' do + before do + stub_application_setting(auto_devops_enabled: true) + stub_container_registry_config(enabled: false) + + visit project_path(project) + end + + it 'shows message that container registry is disabled' do + expect(page).to have_content('Container registry is not enabled on this GitLab instance') + end + end end end |