From 799bd62803149f8d83c70d15bf6629f360a4aa55 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 10 Jun 2019 11:00:23 +0800 Subject: [PATCH] DEV: Improve `PrettyText` spec to test for markdown image title attr. --- spec/components/pretty_text_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/components/pretty_text_spec.rb b/spec/components/pretty_text_spec.rb index 71da86ead13..0b9d317d890 100644 --- a/spec/components/pretty_text_spec.rb +++ b/spec/components/pretty_text_spec.rb @@ -1224,7 +1224,7 @@ HTML ![](http://png.com/my.png) ![|220x100](http://png.com/my.png) ![stuff](http://png.com/my.png) - ![|220x100,50%](http://png.com/my.png) + ![|220x100,50%](http://png.com/my.png "some title") MD html = <<~HTML @@ -1232,7 +1232,7 @@ HTML

stuff
-

+

HTML expect(cooked).to eq(html.strip)