Welcome to mirror list, hosted at ThFree Co, Russian Federation.

drawers.html.haml_spec.rb « help « views « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b250d00bb20101a78b2214e5e5a580a87f69d9ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'help/drawers' do
  describe 'Markdown rendering' do
    before do
      allow(view).to receive(:get_markdown_without_frontmatter).and_return('[GitLab](https://about.gitlab.com/)')
      assign(:clean_path, 'user/ssh')
    end

    it 'renders Markdown' do
      render

      expect(rendered).to have_link('GitLab', href: 'https://about.gitlab.com/')
    end
  end
end