summaryrefslogtreecommitdiff
path: root/spec/views/dashboard/projects/_nav.html.haml_spec.rb
blob: a592c4e44d225cd3226571e1df4b553a73699284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'dashboard/projects/_nav.html.haml' do
  it 'highlights All tab by default' do
    render

    expect(rendered).to have_css('a.active', text: 'All')
  end

  it 'highlights Personal tab personal param is present' do
    controller.params[:personal] = true

    render

    expect(rendered).to have_css('a.active', text: 'Personal')
  end
end