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:
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.rb8
1 files changed, 8 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 d1e756422d5..777dc0c8571 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_report')
+ 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')