2019-01-29 23:42:50 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
shared_examples 'has nav sidebar' do
|
|
|
|
it 'has collapsed nav sidebar on mobile' do
|
|
|
|
render
|
|
|
|
|
2019-02-07 02:22:11 -05:00
|
|
|
expect(rendered).to have_selector('.nav-sidebar')
|
|
|
|
expect(rendered).not_to have_selector('.sidebar-collapsed-desktop')
|
|
|
|
expect(rendered).not_to have_selector('.sidebar-expanded-mobile')
|
2019-01-29 23:42:50 -05:00
|
|
|
end
|
|
|
|
end
|