correct fragile spec

This commit is contained in:
Sam Saffron 2017-08-31 15:55:56 -04:00
parent 48e95f01fc
commit 3bdade8970
1 changed files with 2 additions and 3 deletions

View File

@ -36,10 +36,9 @@ describe FileStore::LocalStore do
end
it "moves the file to the tombstone" do
FileUtils.expects(:mkdir_p)
FileUtils.expects(:move)
File.expects(:exists?).returns(true)
filename = File.basename(store.path_for(upload))
store.remove_upload(upload)
expect(File.exist?(store.tombstone_dir + "/" + filename))
end
end