debian-mirror-gitlab/spec/views/dashboard/projects/_nav.html.haml_spec.rb

18 lines
374 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
require 'spec_helper'
describe 'dashboard/projects/_nav.html.haml' do
it 'highlights All tab by default' do
render
2019-10-12 21:52:04 +05:30
expect(rendered).to have_css('a.active', text: 'All')
2018-03-17 18:26:18 +05:30
end
it 'highlights Personal tab personal param is present' do
controller.params[:personal] = true
render
2019-10-12 21:52:04 +05:30
expect(rendered).to have_css('a.active', text: 'Personal')
2018-03-17 18:26:18 +05:30
end
end