diff --git a/spec/models/optimized_image_spec.rb b/spec/models/optimized_image_spec.rb index 27702902b33..d98162822d7 100644 --- a/spec/models/optimized_image_spec.rb +++ b/spec/models/optimized_image_spec.rb @@ -332,10 +332,7 @@ describe OptimizedImage do 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.filesize).to be > 0 - end - it "allows to recalculate the filesize" do - oi = OptimizedImage.create_for(s3_upload, 100, 200) oi.filesize = nil stub_request(