mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
DEV: merge 2 specs
No need to run 2 specs here when 1 will do
This commit is contained in:
parent
105d560177
commit
3f054d3350
@ -332,10 +332,7 @@ describe OptimizedImage do
|
|||||||
expect(oi.height).to eq(200)
|
expect(oi.height).to eq(200)
|
||||||
expect(oi.url).to eq("//#{SiteSetting.s3_upload_bucket}.s3.dualstack.us-east-1.amazonaws.com#{optimized_path}")
|
expect(oi.url).to eq("//#{SiteSetting.s3_upload_bucket}.s3.dualstack.us-east-1.amazonaws.com#{optimized_path}")
|
||||||
expect(oi.filesize).to be > 0
|
expect(oi.filesize).to be > 0
|
||||||
end
|
|
||||||
|
|
||||||
it "allows to recalculate the filesize" do
|
|
||||||
oi = OptimizedImage.create_for(s3_upload, 100, 200)
|
|
||||||
oi.filesize = nil
|
oi.filesize = nil
|
||||||
|
|
||||||
stub_request(
|
stub_request(
|
||||||
|
Loading…
Reference in New Issue
Block a user