Adds post fabricator for subfolder image upload

This commit is contained in:
Rafael dos Santos Silva 2016-03-10 00:50:07 -03:00
parent c72363ebd7
commit 11ddcb1bfa
1 changed files with 4 additions and 0 deletions

View File

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