gitlab-org--gitlab-foss/spec/views/layouts/nav/sidebar/_group.html.haml_spec.rb
Luke Bennett 6b3966407b
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.
2019-03-05 00:58:21 +11:00

13 lines
214 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe 'layouts/nav/sidebar/_group' do
let(:group) { create(:group) }
before do
assign(:group, group)
end
it_behaves_like 'has nav sidebar'
end