debian-mirror-gitlab/spec/views/dashboard/projects/_nav.html.haml.rb
2018-03-17 18:26:18 +05:30

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