diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-21 21:10:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-21 21:10:24 +0300 |
commit | 77d6584e99881088ada2078703e1501c629aea54 (patch) | |
tree | 2c4fbeab4746e8f01e33264a80f681dad61fc150 /spec/views/layouts | |
parent | d5098d9fe3a5f05d9b90996851ab753f8b40cf65 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/layouts')
-rw-r--r-- | spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb | 8 | ||||
-rw-r--r-- | spec/views/layouts/nav/sidebar/_instance_statistics.html.haml_spec.rb | 7 |
2 files changed, 8 insertions, 7 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 d1e756422d5..285b35fefca 100644 --- a/spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb +++ b/spec/views/layouts/nav/sidebar/_admin.html.haml_spec.rb @@ -66,6 +66,14 @@ RSpec.describe 'layouts/nav/sidebar/_admin' do it_behaves_like 'page has active tab', 'Messages' end + context 'on analytics' do + before do + allow(controller).to receive(:controller_name).and_return('dev_ops_score') + end + + it_behaves_like 'page has active tab', 'Analytics' + end + context 'on hooks' do before do allow(controller).to receive(:controller_name).and_return('hooks') diff --git a/spec/views/layouts/nav/sidebar/_instance_statistics.html.haml_spec.rb b/spec/views/layouts/nav/sidebar/_instance_statistics.html.haml_spec.rb deleted file mode 100644 index d3b57f6dfcf..00000000000 --- a/spec/views/layouts/nav/sidebar/_instance_statistics.html.haml_spec.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe 'layouts/nav/sidebar/_instance_statistics' do - it_behaves_like 'has nav sidebar' -end |