enable style/dotposition rubocop cop
This commit is contained in:
parent
29650beddb
commit
03fa299058
25 changed files with 143 additions and 142 deletions
|
|
@ -50,11 +50,11 @@ describe ApplicationHelper, 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue