2017-01-04 05:46:26 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2017-06-29 00:13:10 -04:00
|
|
|
RSpec.describe 'Dashboard Help' do
|
2017-01-04 05:46:26 -05:00
|
|
|
before do
|
2017-06-21 19:44:10 -04:00
|
|
|
sign_in(create(:user))
|
2017-01-04 05:46:26 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
it 'renders correctly markdown' do
|
|
|
|
visit help_page_path("administration/raketasks/maintenance")
|
|
|
|
|
|
|
|
expect(page).to have_content('Gather information about GitLab and the system it runs on')
|
|
|
|
|
|
|
|
node = find('.documentation h2 a#user-content-check-gitlab-configuration')
|
|
|
|
expect(node[:href]).to eq '#check-gitlab-configuration'
|
|
|
|
expect(find(:xpath, "#{node.path}/..").text).to eq 'Check GitLab configuration'
|
|
|
|
end
|
|
|
|
end
|