2020-04-30 05:09:39 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 11:08:50 -04:00
|
|
|
RSpec.describe 'help/show' do
|
2020-04-30 05:09:39 -04:00
|
|
|
describe 'Markdown rendering' do
|
|
|
|
before do
|
2021-06-28 08:38:12 -04:00
|
|
|
assign(:path, 'ssh/index')
|
2020-04-30 05:09:39 -04:00
|
|
|
assign(:markdown, 'Welcome to [GitLab](https://about.gitlab.com/) Documentation.')
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'renders Markdown' do
|
|
|
|
render
|
|
|
|
|
|
|
|
expect(rendered).to have_link('GitLab', href: 'https://about.gitlab.com/')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|