fix the build

This commit is contained in:
Régis Hanol 2015-02-09 17:13:22 +01:00
parent e0703dbbc7
commit e36272cb68
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ describe OptimizedImage do
end
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"]))
OptimizedImage.create_for(upload, 100, 200)
end