diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-20 18:09:31 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-20 18:09:31 +0000 |
commit | ae4ef81757bdd2c984777d8f0b2c275bbcb4b17d (patch) | |
tree | 1ac23c80190bafb47a1f5a6f1aae9da91d35d9dc /spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb | |
parent | 194b499aa8e26df26ff70a1e1ce0396587bd5243 (diff) | |
download | gitlab-ce-ae4ef81757bdd2c984777d8f0b2c275bbcb4b17d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb')
-rw-r--r-- | spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb b/spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb index 9ec65dba586..aee2b0baf92 100644 --- a/spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb +++ b/spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb @@ -91,4 +91,20 @@ describe 'layouts/nav/sidebar/_admin' do it_behaves_like 'page has active tab', 'Monitoring' it_behaves_like 'page has active sub tab', 'Background Jobs' end + + context 'on settings' do + before do + render + end + + it 'includes General link' do + expect(rendered).to have_link('General', href: general_admin_application_settings_path) + end + + context 'when GitLab FOSS' do + it 'does not include Templates link' do + expect(rendered).not_to have_link('Templates', href: '/admin/application_settings/templates') + end + end + end end |