From e269e45a455252831861ecb7711c0d73b5fbafd2 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Mon, 27 Jan 2020 22:56:12 -0800 Subject: [PATCH] Fix format spec with new markdown options --- spec/helpers/format_helper_spec.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/spec/helpers/format_helper_spec.rb b/spec/helpers/format_helper_spec.rb index 0eb4d055..9d611ccb 100644 --- a/spec/helpers/format_helper_spec.rb +++ b/spec/helpers/format_helper_spec.rb @@ -11,7 +11,15 @@ describe FormatHelper, type: :helper do it 'should return HTML for header markdown' do expect(Redcarpet::Markdown).to receive(:new) - .with(Redcarpet::Render::HTML, autolink: true, space_after_headers: true, no_intra_emphasis: true) + .with( + Redcarpet::Render::HTML, + autolink: true, + space_after_headers: true, + tables: true, + strikethrough: true, + footnotes: true, + superscript: true + ) .and_call_original expect(markdown('# this is my header')).to eq "

this is my header

\n"