summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-02-16 13:26:41 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-02-16 13:26:41 +0000
commit89854139a4bcdd0cc16b67e7c49ec781aee70036 (patch)
treea42d1944f5ab1d3cd250274ed90d27d6fe81403e /spec
parent5a6850c416ee13d93841624c35f07587b6ab2d23 (diff)
parent9a450aedc2c81f8ce17e4c9b4238c58edbef8269 (diff)
downloadgitlab-ce-89854139a4bcdd0cc16b67e7c49ec781aee70036.tar.gz
Merge branch 'asciidoc_inter_document_cross_references' into 'master'
Set Asciidoctor outfilesuffix to default .adoc Closes #43192 and #17602 See merge request gitlab-org/gitlab-ce!17125
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/asciidoc_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/gitlab/asciidoc_spec.rb b/spec/lib/gitlab/asciidoc_spec.rb
index f668f78c2b8..2a0e19ae796 100644
--- a/spec/lib/gitlab/asciidoc_spec.rb
+++ b/spec/lib/gitlab/asciidoc_spec.rb
@@ -95,6 +95,14 @@ module Gitlab
expect(render(input, context)).to include('<p><code data-math-style="inline" class="code math js-render-math">2+2</code> is 4</p>')
end
end
+
+ context 'outfilesuffix' do
+ it 'defaults to adoc' do
+ output = render("Inter-document reference <<README.adoc#>>", context)
+
+ expect(output).to include("a href=\"README.adoc\"")
+ end
+ end
end
def render(*args)