mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:14:12 +08:00
fix the build
This commit is contained in:
@ -71,7 +71,7 @@ describe OptimizedImage do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "downloads a copy of the original image" do
|
it "downloads a copy of the original image" do
|
||||||
Tempfile.any_instance.expects(:close!).twice
|
Tempfile.any_instance.expects(:close!)
|
||||||
store.expects(:download).with(upload).returns(Tempfile.new(["discourse-external", ".png"]))
|
store.expects(:download).with(upload).returns(Tempfile.new(["discourse-external", ".png"]))
|
||||||
OptimizedImage.create_for(upload, 100, 200)
|
OptimizedImage.create_for(upload, 100, 200)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user