summaryrefslogtreecommitdiff
path: root/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
diff options
context:
space:
mode:
authorLuke Bennett <lbennett@gitlab.com>2019-01-30 04:42:50 +0000
committerEzekiel Kigbo <ekigbo@gitlab.com>2019-03-05 00:58:21 +1100
commit6b3966407baff221a0f1f9019fba34c29bafa087 (patch)
treec294bce622f52739f2daabe1aef86c01f3046b5e /spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
parentfde3f619ba557d5242b4fec07488b05398b4993d (diff)
downloadgitlab-ce-6b3966407baff221a0f1f9019fba34c29bafa087.tar.gz
Add tests for nav sidebar collapsed on render
Adds rspec view tests that expect the nav sidebar to have a class that will cause the nav sidebar to be rendered collapsed with or without js. Tests the nav sidebar on the admin, group, instance statistics, user profile and project sidebars.
Diffstat (limited to 'spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb')
-rw-r--r--spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb2
1 files changed, 2 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 d9f05e5f94f..2c60ccfb754 100644
--- a/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
+++ b/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
@@ -11,6 +11,8 @@ describe 'layouts/nav/sidebar/_project' do
allow(view).to receive(:can?).and_return(true)
end
+ it_behaves_like 'has nav sidebar'
+
describe 'issue boards' do
it 'has board tab' do
render