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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
411 B
Ruby
Raw Permalink Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe 'dashboard/projects/_nav.html.haml' do
2018-03-17 18:26:18 +05:30
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