diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-29 21:12:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-29 21:12:42 +0300 |
commit | fef5449973e2097fbedd92980d78dc4baf54afd6 (patch) | |
tree | fae2e4b1e9eb45e0e9b1da569721c5f8c1cea4ef /spec/views/layouts | |
parent | cee701c9641a4dfa508f9a1d913863a52ae67167 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/layouts')
-rw-r--r-- | spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb b/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb index adfe1cee6d6..20c5d9992be 100644 --- a/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb +++ b/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb @@ -580,6 +580,23 @@ RSpec.describe 'layouts/nav/sidebar/_project' do end end end + + describe 'Google Cloud' do + it 'has a link to the google cloud page' do + render + expect(rendered).to have_link('Google Cloud', href: project_google_cloud_index_path(project)) + end + + describe 'when the user does not have access' do + let(:user) { nil } + + it 'does not have a link to the google cloud page' do + render + + expect(rendered).not_to have_link('Google Cloud') + end + end + end end describe 'Packages and Registries' do |