From 3a140a982fd1d55b9f2e7e6a2416a6a57423c774 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 23 May 2016 11:22:25 +0800 Subject: [PATCH] Fix build. --- spec/components/file_store/local_store_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/components/file_store/local_store_spec.rb b/spec/components/file_store/local_store_spec.rb index 28f741f1aab..68724c57770 100644 --- a/spec/components/file_store/local_store_spec.rb +++ b/spec/components/file_store/local_store_spec.rb @@ -40,6 +40,7 @@ describe FileStore::LocalStore do it "moves the file to the tombstone" do FileUtils.expects(:mkdir_p) FileUtils.expects(:move) + File.expects(:exists?).returns(true) upload = Upload.new upload.stubs(:url).returns("/uploads/default/42/253dc8edf9d4ada1.png") store.remove_upload(upload) @@ -52,6 +53,7 @@ describe FileStore::LocalStore do it "moves the file to the tombstone" do FileUtils.expects(:mkdir_p) FileUtils.expects(:move) + File.expects(:exists?).returns(true) oi = OptimizedImage.new oi.stubs(:url).returns("/uploads/default/_optimized/42/253dc8edf9d4ada1.png") store.remove_optimized_image(upload)