FIX: do not cook local date without attributes

This commit is contained in:
Joffrey JAFFEUX
2018-05-24 10:56:04 +02:00
committed by GitHub
parent 3bfd9698c7
commit 54a9073d94
2 changed files with 9 additions and 1 deletions

View File

@ -26,4 +26,12 @@ describe PrettyText do
expect(PrettyText.format_for_email(cooked)).to match_html(cooked_mail)
end
it 'needs attributes to convert to a local date' do
cooked = PrettyText.cook <<~MD
[date]
MD
expect(cooked).to include("<p>[date]</p>")
end
end