mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
DEV: attempt to stabilize flaky spec
Spec was checking implementation when it did not need to, temp file was blank so optimized image should be blank
This commit is contained in:
parent
6fe91bbbbb
commit
494379201d
@ -312,9 +312,10 @@ describe OptimizedImage do
|
||||
end
|
||||
end
|
||||
|
||||
context "when an error happened while generatign the thumbnail" do
|
||||
context "when we have a bad file returned" do
|
||||
it "returns nil" do
|
||||
OptimizedImage.expects(:resize).returns(false)
|
||||
# tempfile is empty
|
||||
# this can not be resized
|
||||
expect(OptimizedImage.create_for(s3_upload, 100, 200)).to eq(nil)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user