gitlab-org--gitlab-foss/spec/views/dashboard/projects/_nav.html.haml.rb
Phil Hughes 9f32276454
Add context tabs to dashboard/projects
This allows users to quickly switch between all projects they have
access to & there own namespace projects. These tabs also keep
the same filtering/search options selected so the user can quickly
switch between the two different contexts.

Closes #29045
2017-09-22 12:12:15 +01:00

17 lines
380 B
Ruby

require 'spec_helper'
describe 'dashboard/projects/_nav.html.haml' do
it 'highlights All tab by default' do
render
expect(rendered).to have_css('li.active a', text: 'All')
end
it 'highlights Personal tab personal param is present' do
controller.params[:personal] = true
render
expect(rendered).to have_css('li.active a', text: 'Personal')
end
end