Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-11-08 18:13:35 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-08 18:13:35 +0300
commit05db4ead6d5c73cf62ad95d80ccac415bc3bf3cd (patch)
tree4db17ac5879083050b2b2dad83a60f63fae8b72b /spec/lib/sidebars
parent6a380347147d1a55afbc6a1c16e04b567ab90d86 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/sidebars')
-rw-r--r--spec/lib/sidebars/projects/menus/infrastructure_menu_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/lib/sidebars/projects/menus/infrastructure_menu_spec.rb b/spec/lib/sidebars/projects/menus/infrastructure_menu_spec.rb
index 2415598da9c..55281171634 100644
--- a/spec/lib/sidebars/projects/menus/infrastructure_menu_spec.rb
+++ b/spec/lib/sidebars/projects/menus/infrastructure_menu_spec.rb
@@ -51,6 +51,16 @@ RSpec.describe Sidebars::Projects::Menus::InfrastructureMenu do
it 'menu link points to Terraform page' do
expect(subject.link).to eq find_menu_item(:terraform).link
end
+
+ context 'when Terraform menu is not visible' do
+ before do
+ subject.renderable_items.delete(find_menu_item(:terraform))
+ end
+
+ it 'menu link points to Google Cloud page' do
+ expect(subject.link).to eq find_menu_item(:google_cloud).link
+ end
+ end
end
end
@@ -89,5 +99,11 @@ RSpec.describe Sidebars::Projects::Menus::InfrastructureMenu do
it_behaves_like 'access rights checks'
end
+
+ describe 'Google Cloud' do
+ let(:item_id) { :google_cloud }
+
+ it_behaves_like 'access rights checks'
+ end
end
end