shift relevant functions to versions_helper

This commit is contained in:
Agrim Mittal 2017-03-24 04:12:25 +05:30 committed by Stella Rouzi
parent b4c2eeb772
commit 255744268b
3 changed files with 3 additions and 29 deletions

View file

@ -8,11 +8,9 @@ describe FormatHelper, type: :helper do
end
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).
and_call_original
expect(Redcarpet::Markdown).to receive(:new)
.with(Redcarpet::Render::HTML, autolink: true, space_after_headers: true, no_intra_emphasis: true)
.and_call_original
expect(markdown('# this is my header')).to eq "<h1>this is my header</h1>\n"
end