Fix format spec with new markdown options
This commit is contained in:
parent
d8ce3c2982
commit
e269e45a45
1 changed files with 9 additions and 1 deletions
|
|
@ -11,7 +11,15 @@ describe FormatHelper, type: :helper do
|
||||||
|
|
||||||
it 'should return HTML for header markdown' do
|
it 'should return HTML for header markdown' do
|
||||||
expect(Redcarpet::Markdown).to receive(:new)
|
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
|
.and_call_original
|
||||||
|
|
||||||
expect(markdown('# this is my header')).to eq "<h1>this is my header</h1>\n"
|
expect(markdown('# this is my header')).to eq "<h1>this is my header</h1>\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue