summaryrefslogtreecommitdiff
path: root/spec/views/help/show.html.haml_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/help/show.html.haml_spec.rb')
-rw-r--r--spec/views/help/show.html.haml_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/views/help/show.html.haml_spec.rb b/spec/views/help/show.html.haml_spec.rb
new file mode 100644
index 00000000000..539c647c1d3
--- /dev/null
+++ b/spec/views/help/show.html.haml_spec.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe 'help/show' do
+ describe 'Markdown rendering' do
+ before do
+ assign(:path, 'ssh/README')
+ 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