diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-10-14 20:18:49 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-10-14 20:18:49 +0200 |
commit | b093cb35d1614a48e980c5ccfca3a8d307d732f7 (patch) | |
tree | 1342da63d6e7ec388d5190c881eb777542263880 /spec | |
parent | da9746e59a46005a0948d34bfd94ae715143c3f7 (diff) | |
download | gitlab-ce-b093cb35d1614a48e980c5ccfca3a8d307d732f7.tar.gz |
Use Gitlab::Markdown for Asciidoc and ReferenceExtractor pipelines
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/asciidoc_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/asciidoc_spec.rb b/spec/lib/gitlab/asciidoc_spec.rb index 03e36fd3552..e8c8180e1c4 100644 --- a/spec/lib/gitlab/asciidoc_spec.rb +++ b/spec/lib/gitlab/asciidoc_spec.rb @@ -50,9 +50,9 @@ module Gitlab filtered_html = '<b>ASCII</b>' allow(Asciidoctor).to receive(:convert).and_return(html) - expect_any_instance_of(HTML::Pipeline).to receive(:call) - .with(html, context) - .and_return(output: Nokogiri::HTML.fragment(filtered_html)) + expect(Gitlab::Markdown).to receive(:render) + .with(html, context.merge(pipeline: :asciidoc)) + .and_return(filtered_html) expect( render('foo', context) ).to eql filtered_html end |