2019-10-08 12:06:01 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-19 12:43:04 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 15:08:50 +00:00
|
|
|
RSpec.describe 'dashboard/projects/_nav.html.haml' do
|
2017-09-19 12:43:04 +00:00
|
|
|
it 'highlights All tab by default' do
|
|
|
|
render
|
|
|
|
|
2019-07-30 13:11:20 +00:00
|
|
|
expect(rendered).to have_css('a.active', text: 'All')
|
2017-09-19 12:43:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'highlights Personal tab personal param is present' do
|
|
|
|
controller.params[:personal] = true
|
|
|
|
|
|
|
|
render
|
|
|
|
|
2019-07-30 13:11:20 +00:00
|
|
|
expect(rendered).to have_css('a.active', text: 'Personal')
|
2017-09-19 12:43:04 +00:00
|
|
|
end
|
|
|
|
end
|