summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-09 12:12:03 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-09 12:12:03 +0000
commit704ed7ea397fbcd02c9b9724cf03e4d4949183fb (patch)
tree115443f45f100879180b5651a6bf3e062cccfe24 /spec/views
parent6021fa2fc624b7d6902273bae55c5b8b2b2b3fff (diff)
downloadgitlab-ce-704ed7ea397fbcd02c9b9724cf03e4d4949183fb.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/help/drawers.html.haml_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/views/help/drawers.html.haml_spec.rb b/spec/views/help/drawers.html.haml_spec.rb
new file mode 100644
index 00000000000..b250d00bb20
--- /dev/null
+++ b/spec/views/help/drawers.html.haml_spec.rb
@@ -0,0 +1,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