debian-mirror-gitlab/spec/views/dashboard/projects/_nav.html.haml_spec.rb
2020-08-09 17:41:57 +05:30

19 lines
411 B
Ruby

# 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