FEATURE: use img's title attribute in overlay information when provided

This commit is contained in:
Régis Hanol
2014-11-03 22:03:06 +01:00
parent f361adef44
commit 862c8a19a3
4 changed files with 36 additions and 5 deletions

View File

@ -76,6 +76,10 @@ Fabricator(:post_with_large_image, from: :post) do
cooked '<img src="/uploads/default/1/1234567890123456.jpg">'
end
Fabricator(:post_with_large_image_and_title, from: :post) do
cooked '<img src="/uploads/default/1/1234567890123456.jpg" title="WAT">'
end
Fabricator(:post_with_uploads, from: :post) do
cooked '
<a href="/uploads/default/2/2345678901234567.jpg">Link</a>