DEV: Test against real Upload#url format.

This commit is contained in:
Guo Xiang Tan
2018-09-14 13:42:59 +08:00
parent 419b14e58b
commit c3f6b4d966
3 changed files with 39 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ describe Stylesheet::Importer do
background = Fabricate(:upload_s3)
category = Fabricate(:category, uploaded_background: background)
expect(compile_css("category_backgrounds")).to include("body.category-#{category.full_slug}{background-image:url(https://s3.cdn/uploads")
expect(compile_css("category_backgrounds")).to include("body.category-#{category.full_slug}{background-image:url(https://s3.cdn/original")
end
end